From: Nigel Kersten <[email protected]>

Sent on behalf of Tim Nicholas.
Make --tags main apply all resources.

Signed-off-by: Nigel Kersten <[email protected]>
---
 lib/puppet/util/tagging.rb |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/lib/puppet/util/tagging.rb b/lib/puppet/util/tagging.rb
index 6323ee0..a4556d6 100644
--- a/lib/puppet/util/tagging.rb
+++ b/lib/puppet/util/tagging.rb
@@ -21,6 +21,8 @@ module Puppet::Util::Tagging
 
   # Are we tagged with the provided tag?
   def tagged?(*tags)
+    # If one of the tags passed is a 'main' then it will always match
+    if tags.include?("main") then return true end
     not ( self.tags & tags.flatten.collect { |t| t.to_s } ).empty?
   end
 
-- 
1.7.2.3

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en.

Reply via email to