summaryrefslogtreecommitdiffstats
path: root/lib/puppet/configurer.rb
diff options
context:
space:
mode:
authorNick Lewis <nick@puppetlabs.com>2011-01-05 17:22:30 -0800
committerNick Lewis <nick@puppetlabs.com>2011-01-06 15:19:42 -0800
commitb16e10dba6606b808ef195f4b57f2e8c66cf65ab (patch)
treebdacf054c1e877166217336322050ee03f28d607 /lib/puppet/configurer.rb
parentfb8509acbd947712cac094a49227d28a16a366aa (diff)
parent19eb1e78e115d10bfb822e510213e4fab9cd2599 (diff)
downloadpuppet-b16e10dba6606b808ef195f4b57f2e8c66cf65ab.tar.gz
puppet-b16e10dba6606b808ef195f4b57f2e8c66cf65ab.tar.xz
puppet-b16e10dba6606b808ef195f4b57f2e8c66cf65ab.zip
Merge branch '2.6.x' into next
Conflicts: Rakefile lib/puppet/resource/type_collection.rb lib/puppet/simple_graph.rb lib/puppet/transaction.rb lib/puppet/transaction/report.rb lib/puppet/util/metric.rb spec/integration/indirector/report/rest_spec.rb spec/spec_specs/runnable_spec.rb spec/unit/configurer_spec.rb spec/unit/indirector_spec.rb spec/unit/transaction/change_spec.rb
Diffstat (limited to 'lib/puppet/configurer.rb')
-rw-r--r--lib/puppet/configurer.rb12
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/puppet/configurer.rb b/lib/puppet/configurer.rb
index 50aaa0d1f..72e387c64 100644
--- a/lib/puppet/configurer.rb
+++ b/lib/puppet/configurer.rb
@@ -72,10 +72,6 @@ class Puppet::Configurer
@splayed = false
end
- def initialize_report
- Puppet::Transaction::Report.new
- end
-
# Prepare for catalog retrieval. Downloads everything necessary, etc.
def prepare(options)
dostorage
@@ -134,7 +130,7 @@ class Puppet::Configurer
Puppet.err "Failed to prepare catalog: #{detail}"
end
- options[:report] ||= initialize_report
+ options[:report] ||= Puppet::Transaction::Report.new("apply")
report = options[:report]
Puppet::Util::Log.newdestination(report)
@@ -145,6 +141,8 @@ class Puppet::Configurer
return
end
+ report.configuration_version = catalog.version
+
transaction = nil
begin
@@ -171,8 +169,8 @@ class Puppet::Configurer
send_report(report, transaction)
end
- def send_report(report, trans = nil)
- trans.generate_report if trans
+ def send_report(report, trans)
+ report.finalize_report if trans
puts report.summary if Puppet[:summarize]
save_last_run_summary(report)
if Puppet[:report]