Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: puppetlabs/facter
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: ed4e0029a59a0f7c4afc33badfb212208f85eda0
Choose a base ref
..
head repository: puppetlabs/facter
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 32e1f288e149b5ea1c6b3694c7155243378ae543
Choose a head ref
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/facter/util/resolvers/networking/primary_interface.rb
2 changes: 1 addition & 1 deletion lib/facter/util/resolvers/networking/primary_interface.rb
Original file line number Diff line number Diff line change
@@ -58,7 +58,7 @@ def read_from_ip_route

def find_in_interfaces(interfaces)
return if interfaces.nil?

interfaces.each do |iface_name, interface|
interface[:bindings]&.each do |binding|
return iface_name unless Facter::Util::Resolvers::Networking.ignored_ip_address(binding[:address])