diff options
author | Luke Kanies <luke@puppetlabs.com> | 2010-04-09 17:03:41 -0700 |
---|---|---|
committer | Luke Kanies <luke@puppetlabs.com> | 2010-04-09 17:03:41 -0700 |
commit | 6cd6c47efa75be82a5cb3e366caaa3bccfe33756 (patch) | |
tree | ddca6a34da1cde448448e8c710f4709dc48c1c77 /lib | |
parent | a27013ac1980ad3978a68794396c15cfffa81a86 (diff) | |
download | puppet-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.rb | 5 |
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) |