summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-02-29 12:56:02 -0600
committerLuke Kanies <luke@madstop.com>2008-02-29 12:56:02 -0600
commite008b02ae04594bd53a9aa29c24961a7d9d9763d (patch)
treeb02092009173c2ef1933a9b8e1c1149c3af40829 /lib
parent65b72676aef2d58314f546eb31780d1b9925b9b3 (diff)
Fixing #1110 -- transactions now always make sure
their tags are arrays.
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/transaction.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/puppet/transaction.rb b/lib/puppet/transaction.rb
index 976bf7c68..14b2037f4 100644
--- a/lib/puppet/transaction.rb
+++ b/lib/puppet/transaction.rb
@@ -15,8 +15,6 @@ class Transaction
# The list of events generated in this transaction.
attr_reader :events
- attr_writer :tags
-
include Puppet::Util
# Add some additional times for reporting
@@ -636,6 +634,11 @@ class Transaction
@tags
end
+
+ def tags=(tags)
+ tags = [tags] unless tags.is_a?(Array)
+ @tags = tags
+ end
# Is this resource tagged appropriately?
def missing_tags?(resource)