network: Fix ipv6enabled fact

This commit is contained in:
Ossi Salmi 2014-04-07 10:43:10 +03:00
parent 0a196539ec
commit 8e8baaa349

View file

@ -5,7 +5,7 @@
Facter.add(:ipv6enabled) do
setcode do
out = Facter::Util::Resolution.exec('ping6 -c 1 ::1 2> /dev/null | egrep " [0\.]*% packet loss"')
if out.empty?
if out.nil? or out.empty?
"false"
else
"true"