lib/resolvers/aix/networking_resolver.rb in facter-4.0.20 vs lib/resolvers/aix/networking_resolver.rb in facter-4.0.21
- old
+ new
@@ -13,10 +13,10 @@
def post_resolve(fact_name)
@fact_list.fetch(fact_name) { read_netstat(fact_name) }
end
def read_netstat(fact_name)
- output, _status = Open3.capture2('netstat -rn')
+ output = Facter::Core::Execution.execute('netstat -rn', logger: log)
output = output.split("\n").select { |line| (line =~ /\s\s[0-9]+.[0-9]+.[0-9]+.[0-9]+|\s\s.*:[0-9a-f]+/) }
get_primary_interface_info(output)
@fact_list[fact_name]
end