help-cfengine
[Top][All Lists]
Advanced

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

Re: method: returnclasses not working


From: Mark Burgess
Subject: Re: method: returnclasses not working
Date: Thu, 14 Jul 2005 21:49:39 +0200

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





reply via email to

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