lib/facts/windows/macaddress_interfaces.rb in facter-4.0.8.pre vs lib/facts/windows/macaddress_interfaces.rb in facter-4.0.9.pre
- old
+ new
@@ -1,16 +1,16 @@
# frozen_string_literal: true
-module Facter
+module Facts
module Windows
class MacaddressInterfaces
FACT_NAME = 'macaddress_.*'
def call_the_resolver
arr = []
- interfaces = Resolvers::Networking.resolve(:interfaces)
+ interfaces = Facter::Resolvers::Networking.resolve(:interfaces)
interfaces&.each do |interface_name, info|
- arr << ResolvedFact.new("macaddress_#{interface_name}", info[:mac], :legacy) if info[:mac]
+ arr << Facter::ResolvedFact.new("macaddress_#{interface_name}", info[:mac], :legacy) if info[:mac]
end
arr
end
end