From 6cd6c47efa75be82a5cb3e366caaa3bccfe33756 Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Fri, 9 Apr 2010 17:03:41 -0700 Subject: Renaming and fixing puppetrun tests. Signed-off-by: Luke Kanies --- lib/puppet/application/run.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib') 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) -- cgit