mirror of
https://opendev.org/openstack/ansible-collections-openstack.git
synced 2026-04-11 11:21:15 +00:00
Fix for AttributeError: 'dict' object has no attribute 'status'.
Story: 2010610 Task: 47505 Change-Id: I9e138d8f282de9adfb3d7e1142c10ab77c22578e
This commit is contained in:
committed by
Jakob Meng
parent
92c3e87467
commit
497f020100
@@ -244,7 +244,7 @@ class NetworkingFloatingIPModule(OpenStackModule):
|
||||
else: # ip
|
||||
# Requested floating ip address exists already
|
||||
|
||||
if ip.port_details and (ip.port_details.status == 'ACTIVE') \
|
||||
if ip.port_details and (ip.port_details['status'] == 'ACTIVE') \
|
||||
and (floating_ip_address not in self._filter_ips(
|
||||
self.server)):
|
||||
# Floating ip address exists and has been attached
|
||||
|
||||
Reference in New Issue
Block a user