summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Coca <bcoca@users.noreply.github.com>2021-08-12 10:13:36 -0400
committerGitHub <noreply@github.com>2021-08-12 10:13:36 -0400
commit03083c3139fa4b4da19ddec143f5f7d9e69dee9a (patch)
treea257f8e1315afcb2933e85e5a129a7d425f8eb83
parent3d872fb5e8e43ac8621b7f126a5639dc74df8d8b (diff)
downloadansible-03083c3139fa4b4da19ddec143f5f7d9e69dee9a.tar.gz
setup module, dont truncate hpux interfaces (#75423)
* setup module, dont truncate hpux interfaces fixes #70533 no hpux to test so relying on man page and users that reported successful testing
-rw-r--r--changelogs/fragments/hpux_iface_facts_length.yml2
-rw-r--r--lib/ansible/module_utils/facts/network/hpux.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/changelogs/fragments/hpux_iface_facts_length.yml b/changelogs/fragments/hpux_iface_facts_length.yml
new file mode 100644
index 0000000000..5ba41fc4ff
--- /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 6e87ee9277..add57be8d3 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()