diff options
| author | Paul Berry <paul@puppetlabs.com> | 2010-11-22 11:56:41 -0800 |
|---|---|---|
| committer | Paul Berry <paul@puppetlabs.com> | 2010-11-22 11:56:41 -0800 |
| commit | 9ed1235c295995b61373b11aa4ae0cc6bb320527 (patch) | |
| tree | 6464dee8324bef52b1f6847fb2f7605978eaa3a3 /lib/puppet/application | |
| parent | a10deae8913f12935726da6944cad627e3277c52 (diff) | |
| parent | ccc944f21a259f0216b0bfd4873c98d89127a753 (diff) | |
| download | puppet-9ed1235c295995b61373b11aa4ae0cc6bb320527.tar.gz puppet-9ed1235c295995b61373b11aa4ae0cc6bb320527.tar.xz puppet-9ed1235c295995b61373b11aa4ae0cc6bb320527.zip | |
Merge remote branch 'masterzen/feature/master/4339' into next
Manually resolved conflicts:
spec/unit/configurer_spec.rb
Diffstat (limited to 'lib/puppet/application')
| -rw-r--r-- | lib/puppet/application/agent.rb | 2 | ||||
| -rw-r--r-- | lib/puppet/application/apply.rb | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/lib/puppet/application/agent.rb b/lib/puppet/application/agent.rb index 2b75505fd..c5ad72068 100644 --- a/lib/puppet/application/agent.rb +++ b/lib/puppet/application/agent.rb @@ -229,6 +229,8 @@ class Puppet::Application::Agent < Puppet::Application Puppet::SSL::Host.ca_location = options[:fingerprint] ? :none : :remote Puppet::Transaction::Report.terminus_class = :rest + # we want the last report to be persisted locally + Puppet::Transaction::Report.cache_class = :yaml # Override the default; puppetd needs this, usually. # You can still override this on the command-line with, e.g., :compiler. diff --git a/lib/puppet/application/apply.rb b/lib/puppet/application/apply.rb index f6299f9fe..32a6b65b9 100644 --- a/lib/puppet/application/apply.rb +++ b/lib/puppet/application/apply.rb @@ -139,6 +139,7 @@ class Puppet::Application::Apply < Puppet::Application configurer.send_report(report, transaction) else transaction.generate_report + configurer.save_last_run_summary(transaction.report) end exit( Puppet[:noop] ? 0 : options[:detailed_exitcodes] ? transaction.report.exit_status : 0 ) @@ -164,6 +165,9 @@ class Puppet::Application::Apply < Puppet::Application exit(1) end + # we want the last report to be persisted locally + Puppet::Transaction::Report.cache_class = :yaml + if options[:debug] Puppet::Util::Log.level = :debug elsif options[:verbose] |
