From d79b6c84068e6f5fe995a74e39cd3f63d86bb294 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 --- 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 01fe850928..dcd9d1f126 100644 --- a/lib/ansible/modules/network/nxos/nxos_facts.py +++ b/lib/ansible/modules/network/nxos/nxos_facts.py @@ -661,7 +661,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)