Ok,
I have a new problem now.
I want to define a class based on the exit value of a script.
According to the documentation I do this:

classes:
        myclass = ( "/path/to/script some_opts some_args" )

This works.

But I want to be able to do variable substitution in the command string like this:

classes:
        myclass = ( "${script_path}/script some_opts ${some_args}" )

This doesn't work. When I run this in debug mode, it is substituting the values and creating the string I expect, but
it never executes the result it just says "[No match of class foo]"

Is this an "undocumented feature" or a bug?
And if it was by design, why can't we have variable expansion here.
Is there a workaround or another way to get this behavior.

I know I could probably use a module, but I'm trying to have this modularized and I don't want to have to put this script in the moduledir.

Thanks for your help,
Michael Grubb
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
http://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to