Skip to content

Commit

Permalink
Bugfix reversed() #707
Browse files Browse the repository at this point in the history
  • Loading branch information
thorfi committed Nov 20, 2023
1 parent f33b570 commit 8532a87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ecs_composex/ecs/ecs_family/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ def sort_env_vars(
for _secret in getattr(service.container_definition, "Secrets", [])
]
# Iterate in reverse for popping so we don't mess up indexes
for _index, _env in reversed(enumerate(sorted_env)):
for _index, _env in reversed(tuple(enumerate(sorted_env))):
if _env.Name in secrets_names:
LOG.warning(
"services.{}: Environment variable {} overlaps with Secret. Removing.".format(
Expand Down

0 comments on commit 8532a87

Please sign in to comment.