[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, master, updated. debian/0.24.6-1-356-g5718585
James Turnbull
james at lovedthanlost.net
Fri Jan 23 14:20:48 UTC 2009
The following commit has been merged in the master branch:
commit 9272df437c3cee6070f4e765bf61511cd85cb3a7
Author: Brice Figureau <brice at daysofwonder.com>
Date: Mon Aug 11 10:49:20 2008 +0200
Fix #1052 - abysmal storeconfig performance - part1
Resources whose references are of the form:
Main::Sub1::Sub2
are extracted from the database under the form:
Main::sub1::sub2
Puppet then fails to match them against compiled resources of same
references which are capitalized as they should, and
tries to overwrite them on every storeconfig run, leading to tons
of cascading DELETE/INSERT, hurting performance.
Signed-off-by: Brice Figureau <brice-puppet at daysofwonder.com>
diff --git a/lib/puppet/rails/resource.rb b/lib/puppet/rails/resource.rb
index eabc873..255b0e7 100644
--- a/lib/puppet/rails/resource.rb
+++ b/lib/puppet/rails/resource.rb
@@ -82,7 +82,7 @@ class Puppet::Rails::Resource < ActiveRecord::Base
end
def ref
- "%s[%s]" % [self[:restype].capitalize, self[:title]]
+ "%s[%s]" % [self[:restype].split("::").collect { |s| s.capitalize }.join("::"), self[:title]]
end
# Convert our object to a resource. Do not retain whether the object
--
Puppet packaging for Debian
More information about the Pkg-puppet-devel
mailing list