help-cfengine
[Top][All Lists]
Advanced

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

disable: /tmp/somefile.txt action=disable doesn't work


From: Thornton, John
Subject: disable: /tmp/somefile.txt action=disable doesn't work
Date: Thu, 21 Oct 2004 09:12:36 -0700

Hello,
 
I'm having trouble with the disable action and defining the action= "">
 
Here's an example of what I'd like to do.
 
classes:
 
        READONLY = ( FileExists(/var/cfengine/.READONLY) )

control:

        domain = ( somedomain.domain )
        actionsequence = ( disable )

    READONLY::

        Action = ( warn )

    !READONLY::

        Action = ( disable )

disable:
 
        /tmp/somefile.txt action="">
   
It works fine if $(Action) is set to warn but produces the following error if $(Action) is set to disable.
 
 
             cf:cfengine::/tmp/test.cf:15: Unknown action for disable
 
When I hard code the disable action with action="" , I still get the error. 
 
Hard coding the disable action with action="" works fine.
 
Omitting the action="" together also works (disables/renames the file).
 
The reference manual shows action="" as valid.
 
Any ideas?
 
Thanks
JT

reply via email to

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