- Moved data sanitization logic so it is no longer conditionally applied (#41405)
This commit is contained in:
parent
dcb35c4270
commit
8c456d8e38
1 changed files with 4 additions and 0 deletions
|
@ -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…
Reference in a new issue