Fix logic in routers_info

The list of fixed ips on the routers info was wrong, adding only the
last one instead of the all of them.

Change-Id: I0bb352ea1845d25cff3aeae507aa55ba473b0a45
This commit is contained in:
Arx Cruz
2022-04-05 15:25:13 +02:00
committed by Jakob Meng
parent 5bb8312171
commit 4b9e2295e0

View File

@@ -179,7 +179,7 @@ class RouterInfoModule(OpenStackModule):
'ip_address': ip_spec.get('ip_address'),
'subnet_id': ip_spec.get('subnet_id')
}
interfaces_info.append(int_info)
interfaces_info.append(int_info)
router['interfaces_info'] = interfaces_info
self.exit(changed=False, openstack_routers=routers)