summaryrefslogtreecommitdiffstats
path: root/lib/puppet/rails/resource.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/rails/resource.rb')
-rw-r--r--lib/puppet/rails/resource.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/puppet/rails/resource.rb b/lib/puppet/rails/resource.rb
index 0163394b1..233982ed9 100644
--- a/lib/puppet/rails/resource.rb
+++ b/lib/puppet/rails/resource.rb
@@ -45,7 +45,8 @@ class Puppet::Rails::Resource < ActiveRecord::Base
def get_tag_hash(tags = nil)
tags ||= resource_tags.find(:all, :include => :puppet_tag)
return tags.inject({}) do |hash, tag|
- hash[tag.puppet_tag.name] = tag.puppet_tag.name
+ # We have to store the tag object, not just the tag name.
+ hash[tag.puppet_tag.name] = tag
hash
end
end