1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

- 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']) loadBalancer['containerPort'] = int(loadBalancer['containerPort'])
loadBalancers.append(loadBalancer) loadBalancers.append(loadBalancer)
for loadBalancer in loadBalancers:
if 'containerPort' in loadBalancer:
loadBalancer['containerPort'] = int(loadBalancer['containerPort'])
if update: if update:
if (existing['loadBalancers'] or []) != loadBalancers: if (existing['loadBalancers'] or []) != loadBalancers:
module.fail_json(msg="It is not possible to update the load balancers of an existing service") module.fail_json(msg="It is not possible to update the load balancers of an existing service")