diff options
Diffstat (limited to 'lib/puppet/transaction.rb')
-rw-r--r-- | lib/puppet/transaction.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/puppet/transaction.rb b/lib/puppet/transaction.rb index 15ce5903b..d70e06c85 100644 --- a/lib/puppet/transaction.rb +++ b/lib/puppet/transaction.rb @@ -127,7 +127,7 @@ class Puppet::Transaction # Start logging. Puppet::Util::Log.newdestination(@report) - prepare() + prepare Puppet.info "Applying configuration version '#{catalog.version}'" if catalog.version @@ -271,11 +271,11 @@ class Puppet::Transaction # Prepare to evaluate the resources in a transaction. def prepare # Now add any dynamically generated resources - generate() + generate # Then prefetch. It's important that we generate and then prefetch, # so that any generated resources also get prefetched. - prefetch() + prefetch # This will throw an error if there are cycles in the graph. @sorted_resources = relationship_graph.topsort @@ -288,7 +288,7 @@ class Puppet::Transaction # Send off the transaction report. def send_report begin - report = generate_report() + report = generate_report rescue => detail Puppet.err "Could not generate report: #{detail}" return @@ -298,7 +298,7 @@ class Puppet::Transaction if Puppet[:report] begin - report.save() + report.save rescue => detail Puppet.err "Reporting failed: #{detail}" end |