Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Dynamic Collection?

Received: by 10.50.237.73 with SMTP id va9mr1453975igc.4.1353024096997;
        Thu, 15 Nov 2012 16:01:36 -0800 (PST)
X-BeenThere: puppet-users@googlegroups.com
Received: by 10.50.7.199 with SMTP id l7ls575773iga.1.gmail; Thu, 15 Nov 2012
 16:01:24 -0800 (PST)
Received: by 10.50.42.194 with SMTP id q2mr801682igl.11.1353024084964;
        Thu, 15 Nov 2012 16:01:24 -0800 (PST)
Date: Thu, 15 Nov 2012 16:01:24 -0800 (PST)
From: Rajul Vora <rajulv...@gmail.com>
To: puppet-users@googlegroups.com
Message-Id: <1a84ef5b-5633-401d-b529-babe0806e616@googlegroups.com>
Subject: Dynamic Collection?
MIME-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_840_14200259.1353024084632"

------=_Part_840_14200259.1353024084632
Content-Type: multipart/alternative; 
	boundary="----=_Part_841_24647183.1353024084632"

------=_Part_841_24647183.1353024084632
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit


I want to do something like this:

class foo ( $collection ) {

User <|  $collection |>

}

where $collection would be a string like "group == admin or group == 
powerusers"

Doesn't work. Is there an alternative way to do this?

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

------=_Part_841_24647183.1353024084632
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit

<br><div>I want to do something like this:</div><div><br></div><div>class foo ( $collection ) {</div><div><br></div><div>User &lt;| &nbsp;$collection |&gt;</div><div><br></div><div>}</div><div><br></div><div>where $collection would be a string like "group == admin or group == powerusers"</div><div><br></div><div>Doesn't work. Is there an alternative way to do this?</div><div><br></div><div>Syntax error at '|&gt;'; expected '}'<br></div>
------=_Part_841_24647183.1353024084632--

------=_Part_840_14200259.1353024084632--