From 03083c3139fa4b4da19ddec143f5f7d9e69dee9a Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Thu, 12 Aug 2021 10:13:36 -0400 Subject: [PATCH] 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 --- changelogs/fragments/hpux_iface_facts_length.yml | 2 ++ lib/ansible/module_utils/facts/network/hpux.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/hpux_iface_facts_length.yml 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()