From 89702d8bac6ddbf1a1dde50a7fbcc2143d5afa5e Mon Sep 17 00:00:00 2001 From: luke Date: Thu, 16 Feb 2006 00:46:59 +0000 Subject: Fixing symbolic naming bug where symbolic names were being ignored in some cases git-svn-id: https://reductivelabs.com/svn/puppet/trunk@918 980ebf18-57e1-0310-9a29-db15c13687c0 --- lib/puppet/type.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib') diff --git a/lib/puppet/type.rb b/lib/puppet/type.rb index 9469d8b0a..07bd7f74a 100644 --- a/lib/puppet/type.rb +++ b/lib/puppet/type.rb @@ -1096,6 +1096,8 @@ class Type < Puppet::Element end name = hash.name + Puppet.warning "creating %s with name %s" % [self.name, name] + # if the object already exists if self.isomorphic? and retobj = self[name] # if only one of our objects is implicit, then it's easy to see @@ -1165,6 +1167,7 @@ class Type < Puppet::Element if hash.include? param name = hash[param] hash.delete(param) + break end } unless name -- cgit