lib/facter/lsbdistdescription.rb in facter-1.6.9 vs lib/facter/lsbdistdescription.rb in facter-1.6.10
- old
+ new
@@ -11,10 +11,10 @@
# Also is as only as accurate as that program outputs.
Facter.add(:lsbdistdescription) do
confine :kernel => [ :linux, :"gnu/kfreebsd" ]
setcode do
- if output = Facter::Util::Resolution.exec('lsb_release -d -s')
+ if output = Facter::Util::Resolution.exec('lsb_release -d -s 2>/dev/null')
# the output may be quoted (at least it is on gentoo)
output.sub(/^"(.*)"$/,'\1')
end
end
end