On 05/09/2012 08:19 AM, Gregory Matthews wrote: > Is it bad practice to have bundles with the same name? e.g. > > bundle common g { > ... > } > > bundle agent g { > ... > } > > it provides some convenience for us and appears to work but am I storing > up trouble for myself?
I think you could end up getting some unexpected results if you do that. If you are referencing a fully qualified variable which one will you get? My tests show it will vary based on what was defined first. Things could get really confusing. It also appears to be affected by the use of methods. Here is a gist that contains the same policy reordered a few times and getting different output. https://gist.github.com/2644870 In fact, I would almost think that the parser should throw an error. _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine