Skip to content

Commit

Permalink
Update tasks/new_e2e_tests.py
Browse files Browse the repository at this point in the history
Co-authored-by: Nicolas Schweitzer <nicolas.schweitzer@datadoghq.com>
  • Loading branch information
KevinFairise2 and chouetz authored Sep 25, 2024
1 parent d77ed79 commit 412bda8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tasks/new_e2e_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,8 @@ def cleanup_remote_stacks(ctx, pipeline_id, pulumi_backend):
return
eks_stacks = set()
stacks = json.loads(res.stdout)
if "Contents" in stacks:
for stack in stacks["Contents"]:
if "Key" in stack:
stack_id = stack["Key"].split("/")[-1].replace(".json.bak", "").replace(".json", "")
for stack in stacks.get("Contents", []):
stack_id = stack.get("Key", "").split("/")[-1].replace(".json.bak", "").replace(".json", "")
if "eks" in stack_id:
eks_stacks.add(f"organization/e2eci/{stack_id}")

Expand Down

0 comments on commit 412bda8

Please sign in to comment.