Check endpoint as well as name (#2)

support_definition
Cian Hatton 3 years ago committed by GitHub
parent b6a36f5589
commit b597e8e141
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -140,7 +140,7 @@ def handle_state_present(client, module):
target_stack_name = module.params["stack_name"]
for stack in stacks:
if stack["Name"] == target_stack_name and int(stack["EndpointID"]) == module.params["endpoint_id"]:
if stack["Name"] == target_stack_name and int(stack["EndpointId"]) == module.params["endpoint_id"]:
already_exists = True
result["stack_id"] = stack["Id"]
break

Loading…
Cancel
Save