Re: Defining classes using array values

2010-02-03 Thread Mark Burgess
y > policy, which was the idea for having it in the first place. > > Unless I missing something else... > > Justin > > -Original Message- > From: nwat...@symcor.com [mailto:nwat...@symcor.com] > Sent: Wednesday, February 03, 2010 12:34 PM > To: Justin Lloyd > Cc: h

RE: Defining classes using array values

2010-02-03 Thread Justin Lloyd
-Original Message- From: nwat...@symcor.com [mailto:nwat...@symcor.com] Sent: Wednesday, February 03, 2010 12:34 PM To: Justin Lloyd Cc: help-cfengine@cfengine.org; help-cfengine-boun...@cfengine.org Subject: RE: Defining classes using array values Still wfm [r...@unxxhd01 inputs]# cf-age

RE: Defining classes using array values

2010-02-03 Thread NWatson
Still wfm [r...@unxxhd01 inputs]# cf-agent -If ./foo.cf Validation: Scalar item in built-in FnCall isvariable-arg => { config[RUNTIME] } in rvalue is out of bounds (value should match pattern [a-zA-Z0-9_$.]+) R: config[RUNTIME] is a variable with value CONFIG!! Validation: Scalar item in built-i

RE: Defining classes using array values

2010-02-03 Thread Justin Lloyd
may be ok as an RHS value but not LHS. Justin -Original Message- From: nwat...@symcor.com [mailto:nwat...@symcor.com] Sent: Wednesday, February 03, 2010 12:15 PM To: Justin Lloyd Cc: help-cfengine@cfengine.org; help-cfengine-boun...@cfengine.org Subject: RE: Defining classes using array v

RE: Defining classes using array values

2010-02-03 Thread NWatson
You idea does seem to work. The error seems more like a warning. cf3 + Private classes augmented: cf3 + runtime_one cf3 cf3 - Private classes diminished: cf3 cf3 cf3 cf3= cf3reports in bundle neil (1) cf3

RE: Defining classes using array values

2010-02-03 Thread Justin Lloyd
a bug. Justin -Original Message- From: nwat...@symcor.com [mailto:nwat...@symcor.com] Sent: Wednesday, February 03, 2010 11:57 AM To: Justin Lloyd Cc: help-cfengine@cfengine.org; help-cfengine-boun...@cfengine.org Subject: Re: Defining classes using array values I get a similar message but stil

Re: Defining classes using array values

2010-02-03 Thread NWatson
I get a similar message but still a report: [r...@unxxhd01 inputs]# cf-agent -f ./foo.cf Validation: Scalar item in built-in FnCall isvariable-arg => { foo[1] } in rvalue is out of bounds (value should match pattern [a-zA-Z0-9_$.]+) R: foo[1] is a variable with value one Validation: Scalar item i