corrected ID

pull/2/head
Cian Hatton 3 years ago
parent ecd954bd18
commit 32bf59d75e

@ -141,7 +141,7 @@ def handle_state_present(client, module):
target_stack_name = module.params["stack_name"]
for stack in stacks:
print(stack)
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