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
parent ffa826c0d0
commit c075126ebd

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)