[2.7]fix nxos_facts indefinite hang for text based output (#45846)

* fix nxos_facts indefinite hang for text based output (#45845)

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
(cherry picked from commit 1b0c4fde86)
pull/45855/head
Trishna Guha 6 years ago committed by Toshio Kuratomi
parent 23f70d9745
commit 9b4bb04d07

@ -0,0 +1,2 @@
bugfixes:
- fix nxos_facts indefinite hang for text based output (https://github.com/ansible/ansible/pull/45845).

@ -630,7 +630,7 @@ class Interfaces(FactsBase):
fact = dict() fact = dict()
fact['port'] = self.parse_lldp_port(item) fact['port'] = self.parse_lldp_port(item)
fact['sysname'] = self.parse_lldp_sysname(item) fact['sysname'] = self.parse_lldp_sysname(item)
facts[local_intf].append(facts) facts[local_intf].append(fact)
return facts return facts

Loading…
Cancel
Save