- Moved data sanitization logic so it is no longer conditionally applied (#41405)

pull/46494/head^2
Francisco Gray 6 years ago committed by ansibot
parent dcb35c4270
commit 8c456d8e38

@ -523,6 +523,10 @@ def main():
loadBalancer['containerPort'] = int(loadBalancer['containerPort'])
loadBalancers.append(loadBalancer)
for loadBalancer in loadBalancers:
if 'containerPort' in loadBalancer:
loadBalancer['containerPort'] = int(loadBalancer['containerPort'])
if update:
if (existing['loadBalancers'] or []) != loadBalancers:
module.fail_json(msg="It is not possible to update the load balancers of an existing service")

Loading…
Cancel
Save