summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJesse Wolfe <jes5199@gmail.com>2011-02-25 13:19:19 -0800
committerJesse Wolfe <jes5199@gmail.com>2011-02-25 13:19:19 -0800
commit1172a4ee50040843e0e4b5eef73183aaf50be855 (patch)
tree7afc83986e6ea068dc6fee4ac5c171b63c47019b /lib
parent063a55eda926ab77aad856a0948da1cb85d4aa7a (diff)
parent23eb77d999acb73021547c5ef86adf609e202605 (diff)
downloadpuppet-1172a4ee50040843e0e4b5eef73183aaf50be855.tar.gz
puppet-1172a4ee50040843e0e4b5eef73183aaf50be855.tar.xz
puppet-1172a4ee50040843e0e4b5eef73183aaf50be855.zip
Merge branch 'ticket/2.6.next/6322' into 2.6.next
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/application/agent.rb2
-rw-r--r--lib/puppet/application/apply.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/puppet/application/agent.rb b/lib/puppet/application/agent.rb
index 895156f11..3749241f8 100644
--- a/lib/puppet/application/agent.rb
+++ b/lib/puppet/application/agent.rb
@@ -119,7 +119,7 @@ class Puppet::Application::Agent < Puppet::Application
if not report
exit(1)
- elsif not Puppet[:noop] and options[:detailed_exitcodes] then
+ elsif options[:detailed_exitcodes] then
exit(report.exit_status)
else
exit(0)
diff --git a/lib/puppet/application/apply.rb b/lib/puppet/application/apply.rb
index 8f5aa86d0..cc733e1f5 100644
--- a/lib/puppet/application/apply.rb
+++ b/lib/puppet/application/apply.rb
@@ -125,7 +125,7 @@ class Puppet::Application::Apply < Puppet::Application
configurer = Puppet::Configurer.new
report = configurer.run(:skip_plugin_download => true, :catalog => catalog)
- exit( Puppet[:noop] ? 0 : options[:detailed_exitcodes] ? report.exit_status : 0 )
+ exit( options[:detailed_exitcodes] ? report.exit_status : 0 )
rescue => detail
puts detail.backtrace if Puppet[:trace]
$stderr.puts detail.message