From 30d184525dfad290dd25cfa40c5433a789a4e3a1 Mon Sep 17 00:00:00 2001 From: Trishna Guha Date: Thu, 25 Oct 2018 10:13:38 +0530 Subject: [PATCH] fix trailing command in net_neighbors nxos_facts (#47548) Signed-off-by: Trishna Guha (cherry picked from commit d79b6c84068e6f5fe995a74e39cd3f63d86bb294) --- lib/ansible/modules/network/nxos/nxos_facts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/network/nxos/nxos_facts.py b/lib/ansible/modules/network/nxos/nxos_facts.py index a4d41b3a2d0..ccedf8a6f4f 100644 --- a/lib/ansible/modules/network/nxos/nxos_facts.py +++ b/lib/ansible/modules/network/nxos/nxos_facts.py @@ -637,7 +637,7 @@ class Interfaces(FactsBase): def parse_lldp_intf(self, data): match = re.search(r'Interface:\s*(\S+)', data, re.M) if match: - return match.group(1) + return match.group(1).strip(',') def parse_lldp_port(self, data): match = re.search(r'Port ID \(outgoing port\):\s*(\S+)', data, re.M)