NSXP LB: Protect members from overwrite
Change-Id: I8aa9fd67af36cbcd56f70c874876a369e24a9b02
This commit is contained in:
parent
c07abaa9a9
commit
991dec895a
@ -414,6 +414,9 @@ class NsxPolicyLoadBalancerPoolApi(NsxPolicyResourceBase):
|
|||||||
if kwargs.get('algorithm', IGNORE) == IGNORE:
|
if kwargs.get('algorithm', IGNORE) == IGNORE:
|
||||||
kwargs['algorithm'] = pool_data.get('algorithm')
|
kwargs['algorithm'] = pool_data.get('algorithm')
|
||||||
|
|
||||||
|
if kwargs.get('members', IGNORE) == IGNORE:
|
||||||
|
kwargs['members'] = pool_data.get('members')
|
||||||
|
|
||||||
for k in kwargs.keys():
|
for k in kwargs.keys():
|
||||||
if kwargs.get(k) == IGNORE and pool_data.get(k):
|
if kwargs.get(k) == IGNORE and pool_data.get(k):
|
||||||
kwargs[k] = pool_data[k]
|
kwargs[k] = pool_data[k]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user