that should be <%= scope.lookupvar('var') %>, note the quotes around var.


On 1 July 2013 09:10, <[email protected]> wrote:

>
> Once again...
>
>
> 1 class test {
> 2  $var1 = 'foo'
> 3  $var2 = 'bar'
> 4  $vars = ["var1","var2"]
> 5  notice($var1)
> 6  notice($var2)
> 7  notice($vars)
> 8  each($vars) |$var| {
> 9    $vardata = inline_template("<%= scope.lookupvar(var) %>")
> 10    notice("$var: $vardata")
> 11  }
> 12 }
>
>
>  --
> 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 [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/puppet-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
Erik Dalén

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to