On Aug 7, 2012, at 7:59, Abid Khwaja <a...@tyrann.net> wrote:

> Even though I declared “dir_wl10domain" in a common bundle and thus the 
> variable is available globally, I still must explicitly reference it as 
> $(def.dir_wl10domain) when I reference it in a different bundle, as in the 
> above.  Is this correct?


Yes, correct, variables are always local to their bundle and must be named with 
the full scope.  Classes are not, so classes defined in common bundles are 
global while classes defined in agent bundles are local and inaccessible 
outside the agent bundle (unless defined by the "classes" promise attribute, 
those classes are always global and there's an issue filed to improve that 
behavior).

Ted

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to