network: Fix ipv6enabled fact
This commit is contained in:
parent
0a196539ec
commit
8e8baaa349
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@
|
||||||
Facter.add(:ipv6enabled) do
|
Facter.add(:ipv6enabled) do
|
||||||
setcode do
|
setcode do
|
||||||
out = Facter::Util::Resolution.exec('ping6 -c 1 ::1 2> /dev/null | egrep " [0\.]*% packet loss"')
|
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"
|
"false"
|
||||||
else
|
else
|
||||||
"true"
|
"true"
|
||||||
|
|
Loading…
Add table
Reference in a new issue