Jira (PUP-1735) Puppet::Node::Environment.current should reroute with deprecation warning

2014-03-12 Thread Henrik Lindberg (JIRA)
Title: Message Title










 

 Henrik Lindberg updated an issue











 






 Puppet /  PUP-1735



  Puppet::Node::Environment.current should reroute with deprecation warning 










Change By:

 Henrik Lindberg




Fix Version/s:

 3.5.0












   

 Add Comment











 










 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
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-1735) Puppet::Node::Environment.current should reroute with deprecation warning

2014-02-25 Thread Adrien Thebo (JIRA)
Title: Message Title










 

 Adrien Thebo commented on an issue











 






  Re: Puppet::Node::Environment.current should reroute with deprecation warning 










Verified with the following:



#!/usr/bin/env ruby

require 'puppet'


Puppet.initialize_settings()
Puppet::Util::Log.level = :debug
Puppet::Util::Log.newdestination(:console)

p Puppet::Node::Environment.current

Puppet.override(:current_environment => :production) do
  p Puppet::Node::Environment.current
end






[root@fedora puppet]# ./deprecate.rb 
Warning: Puppet::Node::Environment.current has been replaced by Puppet.lookup(:current_environment), see http://links.puppetlabs.com/current-env-deprecation
   (at ./deprecate.rb:10:in `')
*root*
Warning: Puppet::Node::Environment.current has been replaced by Puppet.lookup(:current_environment), see http://links.puppetlabs.com/current-env-deprecation
   (at ./deprecate.rb:13:in `block in ')
:production















   

 Add Comment











 













 Puppet /  PUP-1735



  Puppet::Node::Environment.current should reroute with deprecation warning 







 PUP-1118 in commit ecb317b removed Puppet::Node::Environment.current, which I've seen used in two places:   * kafo  * fancy template headers (e.g. https://github.com/theforeman/puppet-puppet/blob/master/templates/_header.erb)   I'm worried that there might be other users of this, so would suggest it's rerouted to the `Puppet.lookup(:current_environment)...




  

Jira (PUP-1735) Puppet::Node::Environment.current should reroute with deprecation warning

2014-02-24 Thread Joshua Partlow (JIRA)
Title: Message Title










 

 Joshua Partlow commented on an issue











 






  Re: Puppet::Node::Environment.current should reroute with deprecation warning 










Merged to master in a4fe8ae












   

 Add Comment











 













 Puppet /  PUP-1735



  Puppet::Node::Environment.current should reroute with deprecation warning 







 PUP-1118 in commit ecb317b removed Puppet::Node::Environment.current, which I've seen used in two places:   * kafo  * fancy template headers (e.g. https://github.com/theforeman/puppet-puppet/blob/master/templates/_header.erb)   I'm worried that there might be other users of this, so would suggest it's rerouted to the `Puppet.lookup(:current_environment)...















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
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/groups/opt_out.


Jira (PUP-1735) Puppet::Node::Environment.current should reroute with deprecation warning

2014-02-24 Thread Joshua Partlow (JIRA)
Title: Message Title










 

 Joshua Partlow updated an issue











 






 Puppet /  PUP-1735



  Puppet::Node::Environment.current should reroute with deprecation warning 










Change By:

 Joshua Partlow




Story Points:

 1












   

 Add Comment











 










 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
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/groups/opt_out.


Jira (PUP-1735) Puppet::Node::Environment.current should reroute with deprecation warning

2014-02-24 Thread Joshua Partlow (JIRA)
Title: Message Title










 

 Joshua Partlow updated an issue











 






 Puppet /  PUP-1735



  Puppet::Node::Environment.current should reroute with deprecation warning 










Change By:

 Joshua Partlow




Sprint:

 Week 2014-2-19 to 2014-2-26












   

 Add Comment











 










 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
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/groups/opt_out.


Jira (PUP-1735) Puppet::Node::Environment.current should reroute with deprecation warning

2014-02-19 Thread Dominic Cleal (JIRA)
Title: Message Title










 

 Dominic Cleal created an issue











 






 Puppet /  PUP-1735



  Puppet::Node::Environment.current should reroute with deprecation warning 










Issue Type:

  Bug




Affects Versions:


 3.5.0




Assignee:

 Dominic Cleal




Created:


 19/Feb/14 11:05 AM




Priority:

  Normal




Reporter:

 Dominic Cleal












PUP-1118
 in commit ecb317b removed Puppet::Node::Environment.current, which I've seen used in two places:


kafo


fancy template headers (e.g. https://github.com/theforeman/puppet-puppet/blob/master/templates/_header.erb)


I'm worried that there might be other users of this, so would suggest it's rerouted to the `Puppet.lookup(:current_environment)` call and prints a deprecation warning to this ticket.