Jira (PUP-4058) autoload.loadall does not use current environment

2015-03-01 Thread Matt Coffey (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Matt Coffey commented on  PUP-4058 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
  Re: autoload.loadall does not use current environment  
 
 
 
 
 
 
 
 
 
 
Tested and both those options worked fine: 
1. not calling anything 2. Puppet::Parser::Functions.function(name) 
So yes, it's a documentation issue, just don't tell people to call Puppet::Parser::Functions.autoloader.loadall() 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.3.10#6340-sha1:7ea293a) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-4058) autoload.loadall does not use current environment

2015-02-28 Thread Matt Coffey (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Matt Coffey commented on  PUP-4058 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
  Re: autoload.loadall does not use current environment  
 
 
 
 
 
 
 
 
 
 
Thanks for the clarification. I'll try not calling anything and see how that works. Updating the documentation would be good, here is the pointer: 
https://docs.puppetlabs.com/guides/custom_functions.html#calling-functions-from-functions 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.3.10#6340-sha1:7ea293a) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-4058) autoload.loadall does not use current environment

2015-02-28 Thread Matt Coffey (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Matt Coffey assigned an issue to Henrik Lindberg 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 Puppet /  PUP-4058 
 
 
 
  autoload.loadall does not use current environment  
 
 
 
 
 
 
 
 
 

Change By:
 
 Matt Coffey 
 
 
 

Assignee:
 
 MattCoffey HenrikLindberg 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.3.10#6340-sha1:7ea293a) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-4058) autoload.loadall does not use current environment

2015-02-27 Thread Matt Coffey (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Matt Coffey created an issue 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 Puppet /  PUP-4058 
 
 
 
  autoload.loadall does not use current environment  
 
 
 
 
 
 
 
 
 

Issue Type:
 
  Bug 
 
 
 

Affects Versions:
 

 PUP 3.6.2 
 
 
 

Assignee:
 
 Kylo Ginsberg 
 
 
 

Components:
 

 Catalog Application 
 
 
 

Created:
 

 2015/02/27 3:59 PM 
 
 
 

Environment:
 
 
OEL 6.5, running puppet master 3.6.2 
 
 
 

Priority:
 
  Normal 
 
 
 

Reporter:
 
 Matt Coffey 
 
 
 
 
 
 
 
 
 
 
According to puppet custom function documentation, if one wanted to call a custom function from within another custom function, `Puppet::Parser::Functions.autoloader.loadall()` is required first. While creating a function library I noticed that older versions of my functions were being run even when restarting my master server. Upon further digging and running puppet from source, I found a few things: 
1. It appears that in lib/puppet/util/autoload.rb, line 131 (acd5fd0 Merge branch 'PUP-2478/3.6.1/security_fixes' into stable) `env` is not getting set to the current_environment. 2. A good workaround for me is to use `Puppet::Parser::Functions.autoloader.load(:function)`, although this