Brian - read the docs. Your class has to be prefixed with
the module name

M

On Thu, 2005-07-14 at 12:18 -0700, Brian Elliott wrote:
> 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
> 
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@gnu.org
> http://lists.gnu.org/mailman/listinfo/help-cfengine



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

Reply via email to