Issue #5898 has been updated by Nick Moffitt.
LaMont Jones wrote: > Nigel Kersten wrote: > > * tag with full node name > > * tag with part of the name that matches the regex > > * tag with a sanitized version of the regex (ie replacing difficult > > characters) > To answer your question here: what's a tag and why would I care about them? > - of the 3 options, 1 or 3 makes far more sense than leaving this submarine > around to torpedo the unwary, especially since "-foo" seems to be a fairly > common way of tagging types of hosts. 3 seems to be the option of least surprise for people currently using the autotagging. It would repair this situation without changing behavior for anyone else. ---------------------------------------- Bug #5898: Node regex beginning with dash results in invalid tag https://projects.puppetlabs.com/issues/5898 Author: Matthew Powell Status: Needs Decision Priority: Normal Assignee: Nigel Kersten Category: Target version: Affected Puppet version: 2.6.4 Keywords: Branch: A node regex starting with a dash results in a tag that begins with a dash, which Puppet doesn't accept as valid: node /-(abc|def)-/ { results in the following error when it is matched: Invalid tag "-abcdef-" on node host-abc-5678.example.com Removing the initial dash works as expected: node /(abc|def)-/ { -- 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://projects.puppetlabs.com/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.
