Issue #14441 has been reported by Chris Price.

----------------------------------------
Refactor #14441: Clean up terrible hack in rake manpages task
https://projects.puppetlabs.com/issues/14441

Author: Chris Price
Status: Accepted
Priority: Urgent
Assignee: Daniel Pittman
Category: API
Target version: Waldorf
Affected Puppet version: 
Keywords: 
Branch: 


I had to add the following line to the manpages.rake file:
    
  Puppet::Util::Instrumentation.init()

This is part of a broader problem that really may deserve its own ticket(s).

The reason it is necessary is because there is state initialization that 
happens when you run code via puppet's "application" class (from the command 
line), but that same state initialization does *not* happen when you try to use 
a Face as API (library code).

We need to put some real thought into what our official stance is on using 
puppet classes (faces or anything else) as API, and come up with a finite list 
of well-defined, contained, entry points.  Once that is done we can make sure 
that state initialization is always triggered via those code paths, and that 
all initialization is consistent with what would happen if you ran via the 
command line.

Then we should remove the hack from the rake task.


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
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.

Reply via email to