diff --git a/changelogs/fragments/hpux_iface_facts_length.yml b/changelogs/fragments/hpux_iface_facts_length.yml new file mode 100644 index 00000000000..5ba41fc4ff2 --- /dev/null +++ b/changelogs/fragments/hpux_iface_facts_length.yml @@ -0,0 +1,2 @@ +bugfixes: + - setup module should now not truncate hpux interface names. diff --git a/lib/ansible/module_utils/facts/network/hpux.py b/lib/ansible/module_utils/facts/network/hpux.py index 6e87ee92774..add57be8d3f 100644 --- a/lib/ansible/module_utils/facts/network/hpux.py +++ b/lib/ansible/module_utils/facts/network/hpux.py @@ -60,7 +60,7 @@ class HPUXNetwork(Network): def get_interfaces_info(self): interfaces = {} - rc, out, err = self.module.run_command("/usr/bin/netstat -ni") + rc, out, err = self.module.run_command("/usr/bin/netstat -niw") lines = out.splitlines() for line in lines: words = line.split()