Issue #7801 has been updated by Ben Hughes.

Status changed from Unreviewed to Needs Decision
Assignee set to Nigel Kersten


----------------------------------------
Bug #7801: include funciton should accept an array
https://projects.puppetlabs.com/issues/7801

Author: R.I. Pienaar
Status: Needs Decision
Priority: Normal
Assignee: Nigel Kersten
Category: 
Target version: 
Affected Puppet version: 
Keywords: 
Branch: 


The include function should accept an array:

<pre>
$c = ["one", "two"]
include($c)
</pre>

This produces:

<pre>
undefined method `downcase' for ["one", "two"]:Array at /home/rip/test.pp:9 on 
node..
</pre>

The use case is that you might get your classes list from some external source, 
like a parser function.

Also and I think this might well be a seperate issue, the parser should allow 
this:

<pre>
include(["one", "two"])
</pre>

this currently produces:

<pre>
Could not parse for environment production: Syntax error at '['; expected ']' 
at /home/rip/test.pp:8 on node
</pre>


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