help-cfengine
[Top][All Lists]
Advanced

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

method: returnclasses not working


From: Brian Elliott
Subject: method: returnclasses not working
Date: 14 Jul 2005 12:18:31 -0700
User-agent: G2/0.2

Is anyone successfully using returnclasses in methods? I can't get the
the following simple example to work:

---------------
# test-method.cf

control:
   any::
      actionsequence = ( methods )

methods:
   any::
      TestMethod(void)
      action=method:TestMethod.cf
      returnclasses=test_class
      server=localhost

alerts:
   test_class::
      "test_class was defined in TestMethod"

---------------
# method:TestMethod.cf

control:
   any::
      ModuleName = ( TestMethod )
      MethodParameters = ( null )

      actionsequence ( shellcommands )

shellcommands:
   any::
      "/bin/echo foo" define=test_class

alerts:
   test_class::
      "test_class defined!"
      ReturnClasses(test_class)
---------------

Shouldn't I see the alert: "test_class was defined in TestMethod"? I'll
file a bug if I'm not the only one seeing this problem.

Thanks,
-Brian



reply via email to

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