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
martin.andrews@lionbioscience.com 

> -----Original Message-----
> From: Mark Burgess [mailto:mark@iu.hio.no]
> Sent: Tuesday, January 14, 2003 1:52 AM
> To: mandrews@cle.lionbioscience.com
> Cc: luke@madstop.com; help-cfengine@gnu.org
> 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:  Mark.Burgess@iu.hio.no
> Fax : +47 22453205            WWW  :  http://www.iu.hio.no/~mark
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 




reply via email to

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