That was my problem. My module defines a class and a variable, I was trying to only dereference the variable only if the class was set. I was doing that as a troubleshooting move, eg, trying to make sure the module had returned results before doing the dereference. I did a bit of testing ...
This works; vars: some_hard_class:: "variable" slist => { @(module.stuff_from_module) }; This doesn't; vars: defined_by_module:: "variable" slist => { @(module.stuff_from_module) }; On Mar 25, 2011, at 11:42 AM, no-re...@cfengine.com wrote: > Forum: Cfengine Help > Subject: Re: Cfengine Help: Re: slist from module? > Author: phnakarin > Link to topic: https://cfengine.com/forum/read.php?3,21266,21268#msg-21268 > > I might misunderstood but there might be something odd with user-defined > classes which were populated by a module. For me, it looked like cfengine > didn't honour the classes in some way (especially under vars: stanza). > > As you may see from Neil's example, he assigned an slist variable under any:: > class (or any hard classes I guessed) and it worked. Regarding Michael's > code, he did that under a class, which I believed, from the module he just > had executed. > > Cheers, > --Nakarin > > _______________________________________________ > 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