Fix member update in octavia

The new member object did not have the lb id so the lb status was not updated.

Change-Id: I7966fdc2b4e7be924056e3483e6a7609c640b9af
This commit is contained in:
Adit Sarfaty 2019-08-14 08:47:10 +03:00
parent f80af0efd6
commit 6cd9e55d69

View File

@ -344,7 +344,9 @@ class NSXOctaviaDriver(driver_base.ProviderDriver):
# Use the parent vip_subnet_id instead
obj_dict['subnet_id'] = obj_dict['loadbalancer'][
'vip_subnet_id']
else:
elif not is_update:
# Do not set pool & LB if in update situation, as we want to
# use the original data of this member
obj_dict['pool'] = None
obj_dict['loadbalancer'] = None