Issue #6942 has been updated by Peter Burkholder.

Using a regex also fails:

`  Nagios_host <<| tag =~ /perf|dev|sec|infra|prodsec/ |>>`

`err: Could not retrieve catalog from remote server: Error 400 on SERVER: 
Syntax error at '=~'; expected '|>>' at 
/etc/puppet/modules/nagios/manifests/config.pp:5`
----------------------------------------
Bug #6942: "in" operator doesn't work in filter for exported resource
https://projects.puppetlabs.com/issues/6942#change-55089

Author: Dan Urist
Status: Accepted
Priority: Normal
Assignee: 
Category: 
Target version: 
Affected Puppet version: 2.6.3
Keywords: 
Branch: 


It appears the "in" operator doesn't work within a filter expression for an 
exported resource. This syntax:

    Nagios_host <<| fqdn in ['test.puppet.cms.ucar.edu'] |>>

yields this error:

    Syntax error at 'in'; expected '|>>'

whereas this syntax works as documented. 

    Nagios_host <<| fqdn == 'test.puppet.cms.ucar.edu' |>>

This is with puppet 2.6.3 on Ubuntu lucid.




-- 
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.

Reply via email to