diff --git a/changelogs/fragments/linux_network_get.yml b/changelogs/fragments/linux_network_get.yml new file mode 100644 index 00000000000..01af77621d3 --- /dev/null +++ b/changelogs/fragments/linux_network_get.yml @@ -0,0 +1,3 @@ +--- +bugfixes: + - linux - remove extraneous get_bin_path API call. diff --git a/lib/ansible/module_utils/facts/network/linux.py b/lib/ansible/module_utils/facts/network/linux.py index 560cd255f37..d199d5a6ae3 100644 --- a/lib/ansible/module_utils/facts/network/linux.py +++ b/lib/ansible/module_utils/facts/network/linux.py @@ -295,8 +295,6 @@ class LinuxNetwork(Network): if not address == '::1': ips['all_ipv6_addresses'].append(address) - ip_path = self.module.get_bin_path("ip") - args = [ip_path, 'addr', 'show', 'primary', 'dev', device] rc, primary_data, stderr = self.module.run_command(args, errors='surrogate_then_replace') if rc == 0: