Signed-off-by: Luke Kanies <[email protected]>
---
lib/puppet/indirector/catalog/active_record.rb | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/lib/puppet/indirector/catalog/active_record.rb
b/lib/puppet/indirector/catalog/active_record.rb
index a766065..9cb29f9 100644
--- a/lib/puppet/indirector/catalog/active_record.rb
+++ b/lib/puppet/indirector/catalog/active_record.rb
@@ -26,9 +26,11 @@ class Puppet::Node::Catalog::ActiveRecord <
Puppet::Indirector::ActiveRecord
host = ar_model.find_by_name(catalog.name) || ar_model.create(:name =>
catalog.name)
- host.merge_resources(catalog.vertices)
- host.last_compile = Time.now
+ host.railsmark "Saved catalog to database" do
+ host.merge_resources(catalog.vertices)
+ host.last_compile = Time.now
- host.save
+ host.save
+ end
end
end
--
1.6.1
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Puppet Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/puppet-dev?hl=en
-~----------~----~----~----~------~----~------~--~---