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

This commit is contained in:
Francisco Gray 2018-10-23 06:38:52 -07:00 committed by ansibot
parent dcb35c4270
commit 8c456d8e38

View file

@ -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")