mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-03-26 21:33:12 +00:00
routeros_facts: fix crash when ipv6 is disabled (#39)
* routeros_facts: fix crash when ipv6 is disabled * chore: rename fixture file
This commit is contained in:
@@ -289,6 +289,8 @@ class Interfaces(FactsBase):
|
||||
|
||||
def populate_ipv6_interfaces(self, data):
|
||||
for key, value in iteritems(data):
|
||||
if key is None:
|
||||
break
|
||||
if 'ipv6' not in self.facts['interfaces'][key]:
|
||||
self.facts['interfaces'][key]['ipv6'] = list()
|
||||
addr, subnet = value['address'].split("/")
|
||||
|
||||
Reference in New Issue
Block a user