Fixed environment fact for Ruby 1.8.6 (no start_with method in string object).
This commit is contained in:
parent
1538e22eda
commit
10fa19d80e
1 changed files with 1 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
||||||
ENV.each do |k,v|
|
ENV.each do |k,v|
|
||||||
next if not k.downcase.start_with?("puppet_")
|
next if not k.downcase =~ /^puppet_/
|
||||||
Facter.add("env_#{k.downcase}".to_sym) do
|
Facter.add("env_#{k.downcase}".to_sym) do
|
||||||
setcode do
|
setcode do
|
||||||
v
|
v
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue