Issue #1901 has been reported by bodepd.

----------------------------------------
Bug #1901: virtual.rb overrides user PATH
http://projects.reductivelabs.com/issues/1901

Author: bodepd
Status: Unreviewed
Priority: Normal
Assigned to: 
Category: 
Target version: 
Complexity: Unknown
Keywords: environment path facter virual.rb


virtual.rb has the line

ENV["PATH"]="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/sbin:/usr/local/bin"

this causes the PATH in facter to always be this hard-coded one. This function 
to return the PATH to normal when its finished.

I want to create a fact for EVN PATH

# add a fact with the current path
Facter.add(:env_path) do
  setcode do
    ENV['PATH']
  end
end

this will not work, because it just shows the hardcoded path.


----------------------------------------
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://reductivelabs.com/redmine/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