#1108: variables become undefined on second puppetd run
---------------------+------------------------------------------------------
Reporter: jeffl | Owner: community
Type: defect | Status: closed
Priority: normal | Milestone:
Component: library | Version:
Severity: normal | Resolution: worksforme
Keywords: | Stage: Needs more info
Patch: None | Complexity: Unknown
---------------------+------------------------------------------------------
Changes (by luke):
* status: new => closed
* resolution: => worksforme
Comment:
This is because the variable is defined outside of the class, and you're
autoloading the file.
The first time through, the code that sets the variable is parsed too late
to set the variable. The second time, the code is already loaded, so you
get the value.
The fix is to move the setting into the class, or explicitly import this
file.
--
Ticket URL: <http://reductivelabs.com/trac/puppet/ticket/1108#comment:5>
puppet <http://reductivelabs.com>
Puppet - Portable System Automation
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---