mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-04 17:53:10 +00:00
update ce_facts (#57187)
This commit is contained in:
committed by
Nathaniel Case
parent
9c3ae4c1f4
commit
229d20b6d9
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user