summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG2
-rw-r--r--lib/facter.rb2
2 files changed, 3 insertions, 1 deletions
diff --git a/CHANGELOG b/CHANGELOG
index c51853b..b9c653e 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,4 +1,6 @@
?:
+ Fixed ticket #48 - operatingsystemrelease for CentOS
+
Fixed ticket #44 and allowed support for Xen multiple interfaces and aliased
interfaces. Supports both Linux and *BSD.
diff --git a/lib/facter.rb b/lib/facter.rb
index 1c8e8ff..0d999fa 100644
--- a/lib/facter.rb
+++ b/lib/facter.rb
@@ -691,7 +691,7 @@ class Facter
end
Facter.add(:operatingsystemrelease) do
- confine :operatingsystem => :redhat
+ confine :operatingsystem => %w{RedHat CentOS}
setcode do
File::open("/etc/redhat-release", "r") do |f|
line = f.readline.chomp