[2.6] fix nxos_facts indefinite hang for text based output (#45847)
* fix nxos_facts indefinite hang for text based output (#45845)
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
(cherry picked from commit 1b0c4fde86
)
* add changelog
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
parent
1a14c50ab7
commit
d1621ba67d
2 changed files with 3 additions and 1 deletions
2
changelogs/fragments/nxos_facts_26.yaml
Normal file
2
changelogs/fragments/nxos_facts_26.yaml
Normal file
|
@ -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['port'] = self.parse_lldp_port(item)
|
||||
fact['sysname'] = self.parse_lldp_sysname(item)
|
||||
facts[local_intf].append(facts)
|
||||
facts[local_intf].append(fact)
|
||||
|
||||
return facts
|
||||
|
||||
|
|
Loading…
Reference in a new issue