summaryrefslogtreecommitdiffstats
path: root/lib/puppet
diff options
context:
space:
mode:
authorJesse Wolfe <jes5199@gmail.com>2011-03-15 15:29:01 -0700
committerJesse Wolfe <jes5199@gmail.com>2011-03-15 17:46:40 -0700
commit4f34dbf206e591614c2fc06ce9bed1628ee85715 (patch)
tree6788c517b32c36f1c5e58d239143bca39f0775cb /lib/puppet
parent9781032736a34f577241828bcf812a648b4f42e9 (diff)
downloadpuppet-4f34dbf206e591614c2fc06ce9bed1628ee85715.tar.gz
puppet-4f34dbf206e591614c2fc06ce9bed1628ee85715.tar.xz
puppet-4f34dbf206e591614c2fc06ce9bed1628ee85715.zip
Fix #5610: Prevent unnecessary RAL lookups
Reviewed-By: Paul Berry <paul@puppetlabs.com>
Diffstat (limited to 'lib/puppet')
-rw-r--r--lib/puppet/type.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/type.rb b/lib/puppet/type.rb
index 205d809c1..d24cc8554 100644
--- a/lib/puppet/type.rb
+++ b/lib/puppet/type.rb
@@ -200,7 +200,7 @@ class Type
end
def uniqueness_key
- to_resource.uniqueness_key
+ self.class.key_attributes.sort_by { |attribute_name| attribute_name.to_s }.map{ |attribute_name| self[attribute_name] }
end
# Create a new parameter. Requires a block and a name, stores it in the