mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-25 14:20:22 -07:00
update ce_facts (#57187)
This commit is contained in:
parent
9c3ae4c1f4
commit
229d20b6d9
1 changed files with 4 additions and 1 deletions
|
@ -324,7 +324,10 @@ class Interfaces(FactsBase):
|
|||
tmp_neighbors = neighbors[2:]
|
||||
for item in tmp_neighbors:
|
||||
tmp_item = item.split()
|
||||
neighbors_dict[tmp_item[0]] = tmp_item[3]
|
||||
if len(tmp_item) > 3:
|
||||
neighbors_dict[tmp_item[0]] = tmp_item[3]
|
||||
else:
|
||||
neighbors_dict[tmp_item[0]] = None
|
||||
self.facts['neighbors'] = neighbors_dict
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue