lib/facts/linux/networking/network.rb in facter-4.0.28 vs lib/facts/linux/networking/network.rb in facter-4.0.29
- old
+ new
@@ -6,13 +6,10 @@
class Network
FACT_NAME = 'networking.network'
ALIASES = 'network'
def call_the_resolver
- interfaces = Facter::Resolvers::NetworkingLinux.resolve(:interfaces)
- primary = Facter::Resolvers::NetworkingLinux.resolve(:primary_interface)
-
- fact_value = interfaces[primary][:network] if interfaces && interfaces[primary]
+ fact_value = Facter::Resolvers::NetworkingLinux.resolve(:network)
[Facter::ResolvedFact.new(FACT_NAME, fact_value), Facter::ResolvedFact.new(ALIASES, fact_value, :legacy)]
end
end
end