summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/puppet/application/puppetd.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/puppet/application/puppetd.rb b/lib/puppet/application/puppetd.rb
index c1f733183..4230719ad 100644
--- a/lib/puppet/application/puppetd.rb
+++ b/lib/puppet/application/puppetd.rb
@@ -114,7 +114,9 @@ Puppet::Application.new(:puppetd) do
Puppet.err detail.to_s
end
- if not Puppet[:noop] and options[:detailed_exitcodes] then
+ if not report
+ exit(1)
+ elsif not Puppet[:noop] and options[:detailed_exitcodes] then
exit(report.exit_status)
else
exit(0)