summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRein Henrichs <rein@puppetlabs.com>2010-08-18 15:50:39 -0700
committerRein Henrichs <rein@puppetlabs.com>2010-08-18 15:50:39 -0700
commit01a515fc4d6af84fa99e42475a95d846e09343d0 (patch)
tree2937e61b2e9e7d68c3d4d3683fa2544c9668da9c /lib
parent51bcebe38cab6088c901f1006339bbe40a36d161 (diff)
downloadfacter-01a515fc4d6af84fa99e42475a95d846e09343d0.tar.gz
facter-01a515fc4d6af84fa99e42475a95d846e09343d0.tar.xz
facter-01a515fc4d6af84fa99e42475a95d846e09343d0.zip
[#4289] operatingsystemrelease fact for oel, ovs
When Facter returns operatingsystem as "oel" or "ovs", the operatingsystemrelease fact does not catch these properly, causing an error. Specs added to catch failure and case statement updated to catch "oel" and "ovs" as well as "OEL" and "OVS"
Diffstat (limited to 'lib')
-rw-r--r--lib/facter/operatingsystemrelease.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/facter/operatingsystemrelease.rb b/lib/facter/operatingsystemrelease.rb
index 30f2989..280208b 100644
--- a/lib/facter/operatingsystemrelease.rb
+++ b/lib/facter/operatingsystemrelease.rb
@@ -8,9 +8,9 @@ Facter.add(:operatingsystemrelease) do
releasefile = "/etc/fedora-release"
when "MeeGo"
releasefile = "/etc/meego-release"
- when "OEL"
+ when "OEL", "oel"
releasefile = "/etc/enterprise-release"
- when "OVS"
+ when "OVS", "ovs"
releasefile = "/etc/ovs-release"
end
File::open(releasefile, "r") do |f|