diff options
-rw-r--r-- | CHANGELOG | 2 | ||||
-rw-r--r-- | lib/facter.rb | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -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 |