From 3ae3a4ec9f25b590bd84a9a2693cde2e6553a6c2 Mon Sep 17 00:00:00 2001 From: luke Date: Thu, 5 Jul 2007 23:54:26 +0000 Subject: Fixing #689, although I have not added unit tests. The problem was that a tag name was being removed, rather than the tag object itself. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2651 980ebf18-57e1-0310-9a29-db15c13687c0 --- lib/puppet/parser/resource.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/puppet/parser/resource.rb') diff --git a/lib/puppet/parser/resource.rb b/lib/puppet/parser/resource.rb index 0722f388c..56b430b7f 100644 --- a/lib/puppet/parser/resource.rb +++ b/lib/puppet/parser/resource.rb @@ -207,9 +207,9 @@ class Puppet::Parser::Resource db_resource.ar_hash_merge(db_resource.get_tag_hash(), updated_tags, :create => Proc.new { |name, tag| - db_resource.add_resource_tag(tag) - }, :delete => Proc.new { |rt| - rt.each { |tag| db_resource.resource_tags.delete(tag) } + db_resource.add_resource_tag(name) + }, :delete => Proc.new { |tag| + db_resource.resource_tags.delete(tag) }, :modify => Proc.new { |db, mem| # nothing here }) -- cgit