Fix for AttributeError: 'dict' object has no attribute 'status'.

Story: 2010610
Task: 47505
Change-Id: I9e138d8f282de9adfb3d7e1142c10ab77c22578e
This commit is contained in:
Christian Kueppers 2023-02-24 10:49:45 +01:00 committed by Jakob Meng
parent 92c3e87467
commit 497f020100

View File

@ -244,7 +244,7 @@ class NetworkingFloatingIPModule(OpenStackModule):
else: # ip else: # ip
# Requested floating ip address exists already # 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( and (floating_ip_address not in self._filter_ips(
self.server)): self.server)):
# Floating ip address exists and has been attached # Floating ip address exists and has been attached