Hi there,
Need to iterate over an arry, so was trying the Future Parser. Using a very 
simple example:


$alpha = ['a','b','c']
each($alpha) |String $value| { notice( "Hi there, ${value}" ) }

but getting this error:
*Error: Could not retrieve catalog from remote server: Error 400 on SERVER: 
Could not match |String at......*

Not using the strict variable type also doesn't help, I get error at  *|*
*$value* that time.

I also tried using: $alpha.each |String $value| { notice( "Hi there, 
${value}" ) }

and get the error like:
*Error: Could not retrieve catalog from remote server: Error 400 on SERVER: 
Syntax error at '.'; expected '}' at....*


I do have parser=future defined in the puppet.conf on my PM. what am I 
still missing?

-San

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/adae1bd7-a596-43c0-b38e-5aa164de2dc9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to