diff --git a/lib/facter/resolvers/networking.rb b/lib/facter/resolvers/networking.rb index 9ffec26461..e0f01f6e83 100644 --- a/lib/facter/resolvers/networking.rb +++ b/lib/facter/resolvers/networking.rb @@ -71,7 +71,8 @@ def extract_mac(raw_data, parsed_interface_data) end def extract_dhcp(interface_name, raw_data, parsed_interface_data) - return unless raw_data =~ /status:\s+active/ + return unless ((raw_data =~ /status:\s+active/) && + (OsDetector.instance.identifier == :macosx)) result = Facter::Core::Execution.execute("ipconfig getoption #{interface_name} " \ 'server_identifier', logger: log)