>Henrik Lindberg <[email protected]> writes:
>> On 03/10/16 15:48, jcbollinger wrote:
>> The behavior you describe seems buggy to me, but your manifests are also
>> unusual.  Specifically, it is strange for test/manifests/init.pp to
>> contain a top-scope declaration.  It is especially strange for that
>> declaration to be "include test" because this is the very same file that
>> would be evaluated, if needed, as a result of evaluating that
>> declaration.

yes, i agree fully. this is not the usual way to write modules. i was
just showing a collegue who's getting started with puppet an example
module and while playing around we found this rather strange behaviour.

> Top scope logic in autoloaded code have very strange effects and
> should not be used. At some point in the future it will probably be
> forbidden to have any code outside of the structure that is supposed
> to be in an autoloaded file.

ok, thanks for the clarification.

>> As I said, however, I think it should work, and even if there were a
>> reason for it not to work, the error message that is emitted is bizarre
>> for the code presented.  I think that's probably indicative that the
>> code is doing something unexpected by its authors.  I encourage you to
>> file a ticket for buggy behavior here, but if you do so, do not neglect
>> to mention the diagnostic because at the very least, there are grounds
>> here for an RFE around improving the diagnostic.

ok, once again thanks for your time. i'll file a ticket.

thank you both
toni

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/8737kalgzn.fsf%40stderr.at.
For more options, visit https://groups.google.com/d/optout.

Reply via email to