summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLuke Kanies <luke@puppetlabs.com>2010-04-09 17:03:41 -0700
committerLuke Kanies <luke@puppetlabs.com>2010-04-09 17:03:41 -0700
commit6cd6c47efa75be82a5cb3e366caaa3bccfe33756 (patch)
treeddca6a34da1cde448448e8c710f4709dc48c1c77 /lib
parenta27013ac1980ad3978a68794396c15cfffa81a86 (diff)
downloadpuppet-6cd6c47efa75be82a5cb3e366caaa3bccfe33756.tar.gz
puppet-6cd6c47efa75be82a5cb3e366caaa3bccfe33756.tar.xz
puppet-6cd6c47efa75be82a5cb3e366caaa3bccfe33756.zip
Renaming and fixing puppetrun tests.
Signed-off-by: Luke Kanies <luke@puppetlabs.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/application/run.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/puppet/application/run.rb b/lib/puppet/application/run.rb
index 46d1b191f..395ba987b 100644
--- a/lib/puppet/application/run.rb
+++ b/lib/puppet/application/run.rb
@@ -126,7 +126,9 @@ Puppet::Application.new(:run) do
:ignoreschedules => options[:ignoreschedules]
}
run = Puppet::Run.new( run_options ).save( url )
+ puts "Getting status"
result = run.status
+ puts "status is #{result}"
rescue => detail
puts detail.backtrace if Puppet[:trace]
$stderr.puts "Host %s failed: %s\n" % [host, detail]
@@ -134,7 +136,8 @@ Puppet::Application.new(:run) do
end
case result
- when "success"; exit(0)
+ when "success";
+ exit(0)
when "running"
$stderr.puts "Host %s is already running" % host
exit(3)