help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: undefined variable test


From: Andrews, Martin
Subject: RE: undefined variable test
Date: Tue, 14 Jan 2003 12:03:32 -0500

Mark,

Your right - my script that tested the order of groups versus control had a
typo. Time to tear up that cfengine-expert card I carry in my wallet :-) Now
I can get default values!

groups:
  has_basedir = ( IsDefined(basedir) )

control:
  
  !has_basedir::
  basedir = ( /opt )


Thanks -
Martin
----
Martin Andrews
address@hidden 

> -----Original Message-----
> From: Mark Burgess [mailto:address@hidden
> Sent: Tuesday, January 14, 2003 1:52 AM
> To: address@hidden
> Cc: address@hidden; address@hidden
> Subject: Re: undefined variable test
> 
...
> 
> Groups are not evaluated after control, unless you place them 
> after control
> in your script.
> 
> M
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Work: +47 22453272            Email:  address@hidden
> Fax : +47 22453205            WWW  :  http://www.iu.hio.no/~mark
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]