lib/facter/ipaddress6.rb in facter-1.6.17 vs lib/facter/ipaddress6.rb in facter-1.6.18.rc1

- old
+ new

@@ -36,28 +36,28 @@ end Facter.add(:ipaddress6) do confine :kernel => :linux setcode do - output = Facter::Util::Resolution.exec('/sbin/ifconfig 2>/dev/null') + output = Facter::Util::IP.exec_ifconfig(["2>/dev/null"]) get_address_after_token(output, 'inet6 addr:') end end Facter.add(:ipaddress6) do confine :kernel => %w{SunOS} setcode do - output = Facter::Util::Resolution.exec('/usr/sbin/ifconfig -a') + output = Facter::Util::IP.exec_ifconfig(["-a"]) get_address_after_token(output, 'inet6') end end Facter.add(:ipaddress6) do confine :kernel => %w{Darwin FreeBSD OpenBSD} setcode do - output = Facter::Util::Resolution.exec('/sbin/ifconfig -a') + output = Facter::Util::IP.exec_ifconfig(["-a"]) get_address_after_token(output, 'inet6', true) end end