From d7d82fc7f0d19a819cf86cac11a89c0940457d79 Mon Sep 17 00:00:00 2001 From: James Turnbull Date: Sat, 22 Dec 2007 15:10:02 +1100 Subject: Fixed ticket #48 - CentOS operatingsystemrelease fact now reporting correct value --- CHANGELOG | 2 ++ lib/facter.rb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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 -- cgit