NSXP LB: Protect members from overwrite

Change-Id: I8aa9fd67af36cbcd56f70c874876a369e24a9b02
This commit is contained in:
Kobi Samoray 2019-04-16 14:09:57 +03:00
parent c07abaa9a9
commit 991dec895a
1 changed files with 3 additions and 0 deletions

View File

@ -414,6 +414,9 @@ class NsxPolicyLoadBalancerPoolApi(NsxPolicyResourceBase):
if kwargs.get('algorithm', IGNORE) == IGNORE:
kwargs['algorithm'] = pool_data.get('algorithm')
if kwargs.get('members', IGNORE) == IGNORE:
kwargs['members'] = pool_data.get('members')
for k in kwargs.keys():
if kwargs.get(k) == IGNORE and pool_data.get(k):
kwargs[k] = pool_data[k]