Omit the spaces in your output:

control:
   AddClasses = ( ExecShellResult("/path/to/get_classes.sh") )

$ /path/to/get_classes.sh
dev_class,system_class,some_other_class


On Thu, 21 Jan 2010, Atom Powers wrote:

> I'd like to use ExecResult with AddClasses to add several classes at
> once, by pulling them in from an external sources. It doesn't seem to
> work as I would expect. ( cfengine 2.2.10)
>
> "/bin/get_classes" returns something like "class1, class2"
>
> I would like to do something like this:
>
> AddClasses = ( ExecResult("/bin/get_classes") )
>
> But only class1 gets defined.
>
> AddClasses = ( class1, class2 ) -> both classes are defined
> AddClasses = (  "class1, class2" ) -> only class1 is defined
>
> Anyway to define both classes this way?
>
> -- 
> Perfection is just a word I use occasionally with mustard.
> --Atom Powers--
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@cfengine.org
> https://cfengine.org/mailman/listinfo/help-cfengine
>
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to