mirror of https://github.com/ansible/ansible.git
ios_facts: Fix minor aesthetical glitches (#46577)
* ios_facts: Fix LLDP gathering without neighbors When LLDP is enabled but no neighbors are present, the following structure is generated: ... "ansible_net_neighbors": { "null": [ { "host": null, "port": null } ] }, ... If we are not able to find any relevant LLDP information, bail out early so cases like shown above are handled more gracefully. * ios_facts: Remove trailing space in lineprotocol Some Cisco devices (at least CSR1000V 16.6.4) add a space after the line protocol. This causes the space to be present in the result of fact gathering: "ansible_net_interfaces": { "GigabitEthernet2": { ... "lineprotocol": "up ", Be more clear about scanning the output to avoid this behaviour.pull/46753/head
parent
4ba0cfeb4b
commit
39673dfc37
Loading…
Reference in New Issue