I would like feedback on a new feature. To enable policy which can both be 
imported as a library (inputs) and executed on it's own, I've introduced 
the *__main__* name for bundles. When the entry policy file has a *__main__* 
bundle it will be defined as main, however if it is in another imported 
file, it will be removed before evaluation (to avoid conflicting names). 
The old main bundle will still work as is.

Please tell me if you think this is useful, or if you have opinions on the 
syntax/semantics of this. The current C implementation might be changed.

Pull Request with example usage is here: 
https://github.com/cfengine/core/pull/3118

-Herman

-- 
You received this message because you are subscribed to the Google Groups 
"dev-cfengine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dev-cfengine/92c3eaf1-22c0-4350-98b1-f13044ab97aa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to