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