summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Coca <bcoca@users.noreply.github.com>2021-09-02 17:01:13 -0400
committerGitHub <noreply@github.com>2021-09-02 14:01:13 -0700
commit7425bf093d920db0c8f91e6889fc7488b8d523d1 (patch)
tree29593317adc59c79a859ae3a6f24f7d7f477f026
parent9437c6f465815ca30de3974d430030aca35704e7 (diff)
downloadansible-7425bf093d920db0c8f91e6889fc7488b8d523d1.tar.gz
setup module, dont truncate hpux interfaces (#75423) (#75490)
* setup module, dont truncate hpux interfaces fixes #70533 no hpux to test so relying on man page and users that reported successful testing (cherry picked from commit 03083c3139fa4b4da19ddec143f5f7d9e69dee9a)
-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()