At some point in time between 2.1.14 and 2.1.17 the following test.cf
file stopped working.

Both Debian's 2.1.17-1 and the self-compiled version from subversion
revision 174 print "/etc/passwd NOT exists".

Debian's 2.1.14-1sarge1 prints "/etc/passwd exists".

Here is the file:
---------test.cf--------
control:

    actionsequence = ( shellcommands )
    wcbk = ( /etc/passwd )

classes:

    wcbkini = ( FileExists(${wcbk}) )

shellcommands:

    !wcbkini::
        "/bin/echo ${wcbk} NOT exists"

    wcbkini::
        "/bin/echo ${wcbk} exists"
--------EOF--------

I have tested with 'cfagent -f `pwd`/test.cf -d 3'. Please let me know
if you need further evidence.


Thanks,
-- 
andreas


_______________________________________________
Help-cfengine mailing list
Help-cfengine@gnu.org
http://lists.gnu.org/mailman/listinfo/help-cfengine

Reply via email to