Merge pull request #3 from ace13/patch-1

Update operatingsystem.rb
This commit is contained in:
Ben Roberts
2016-11-01 21:39:40 +00:00
committed by GitHub

View File

@@ -2,13 +2,10 @@ Facter.add(:operatingsystem) do
# Sabayon Linux is a variant of Gentoo so this resolution needs to come # Sabayon Linux is a variant of Gentoo so this resolution needs to come
# before the Gentoo resolution. # before the Gentoo resolution.
has_weight(100) has_weight(100)
confine :kernel => :linux confine kernel: :linux, lsbdistid: :sabayon
setcode do setcode do
distid = Facter.value(:lsbdistid) 'Sabayon'
if distid == "Sabayon"
'Sabayon'
end
end end
end end