[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: variables in FileExists
From: |
Eric Sorenson |
Subject: |
Re: variables in FileExists |
Date: |
Mon, 28 Jul 2003 09:43:46 -0700 (PDT) |
On Mon, 28 Jul 2003, Adrian Phillips wrote:
> >>>>> "Eric" == Eric Sorenson <eric@explosive.net> writes:
>
> Eric> Hi, I'd like to be able to do this: groups: myconfig = (
> Eric> FileExists($(cfdir)/$(host).conf) )
>
> Early morning still but :-
>
> ( FileExists("$(cfdir)/$(host).conf") )
>
Nope..
cf::/home/eric/cvs/cfengine2/inputs/cfgroups.conf:19: Variables in
groups/classes need to be quoted
cf::/home/eric/cvs/cfengine2/inputs/cfgroups.conf:19: Variable or name
out of context
cf::/home/eric/cvs/cfengine2/inputs/cfgroups.conf:19: Wildcards cannot
be used in this context:
cf::/home/eric/cvs/cfengine2/inputs/cfgroups.conf:19: parse error
Mark said maybe this is fixed in 2.0.7p3, I'll try that this morning
(GMT-8 :-) )
--
Eric Sorenson - EXPLOSIVE Networking - http://explosive.net