Issue #1115 has been updated by masterzen.

Affected version set to 0.24.4

luke wrote:
> There is a 'tags' method on the catalog that you should be using for tags, 
> rather than just the classes for tags.
> 
> Also, I'd like tests for this, especially since it should be pretty easy.

Fixed with tests in:
http://github.com/masterzen/puppet/tree/tickets%2F0.24.x%2F1109
----------------------------------------
Feature #1115: Allow checking tags from ERb templates
http://projects.reductivelabs.com/issues/show/1115

Author: jgoldschrafe
Status: Accepted
Priority: Normal
Assigned to: community
Category: language
Target version: unplanned
Complexity: Easy
Patch: Insufficient
Affected version: 0.24.4
Keywords: 


The current Puppet architecture does not allow tags to be checked from ERb 
templates. This should be changed to allow conditional behavior to be set in 
the templates based on whether or not a resource possesses a certain tag.

Currently, tagged() is a Puppet function with no corresponding callable in pure 
Ruby. The appropriate functionality should be refactored into a pure Ruby 
function that is callable from an ERb template. This will probably require 
providing additional data to the ERb binding.


----------------------------------------
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://reductivelabs.com/redmine/my/account

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" 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-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to