lib/facter/facts/macosx/ipaddress_interfaces.rb in facter-4.0.34 vs lib/facter/facts/macosx/ipaddress_interfaces.rb in facter-4.0.35

- old
+ new

@@ -6,10 +6,10 @@ FACT_NAME = 'ipaddress_.*' TYPE = :legacy def call_the_resolver arr = [] - interfaces = Facter::Resolvers::Macosx::Networking.resolve(:interfaces) + interfaces = Facter::Resolvers::Networking.resolve(:interfaces) interfaces&.each do |interface_name, info| arr << Facter::ResolvedFact.new("ipaddress_#{interface_name}", info[:ip], :legacy) if info[:ip] end arr