diff options
author | David Schmitt <david@dasz.at> | 2010-05-19 19:36:51 +0200 |
---|---|---|
committer | test branch <puppet-dev@googlegroups.com> | 2010-02-17 06:50:53 -0800 |
commit | f80b4c73bb17af8b103cbc2562f8617755e93d3f (patch) | |
tree | 7904ef1cc1be1397b2e241662b13adc58d8d49d0 | |
parent | 1d98e679a040627bc4865453f147bc03f64140fe (diff) | |
download | puppet-f80b4c73bb17af8b103cbc2562f8617755e93d3f.tar.gz puppet-f80b4c73bb17af8b103cbc2562f8617755e93d3f.tar.xz puppet-f80b4c73bb17af8b103cbc2562f8617755e93d3f.zip |
Print stacktraces if requested
-rw-r--r-- | lib/puppet/ssl/host.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/puppet/ssl/host.rb b/lib/puppet/ssl/host.rb index 8b455671d..f367adaca 100644 --- a/lib/puppet/ssl/host.rb +++ b/lib/puppet/ssl/host.rb @@ -230,6 +230,7 @@ class Puppet::SSL::Host rescue SystemExit,NoMemoryError raise rescue Exception => detail + puts detail.backtrace if Puppet[:trace] Puppet.err "Could not request certificate: %s" % detail.to_s if time < 1 puts "Exiting; failed to retrieve certificate and waitforcert is disabled" @@ -251,6 +252,7 @@ class Puppet::SSL::Host break if certificate Puppet.notice "Did not receive certificate" rescue StandardError => detail + puts detail.backtrace if Puppet[:trace] Puppet.err "Could not request certificate: %s" % detail.to_s end end |