Skip to content

Commit

Permalink
Merge pull request 'Sort order was backwards' (#770) from dboreham/fi…
Browse files Browse the repository at this point in the history
…x-container-age-sort into main

Reviewed-on: https://git.vdb.to/cerc-io/stack-orchestrator/pulls/770
  • Loading branch information
David Boreham committed Feb 27, 2024
2 parents 170ad71 + 64cec16 commit 01e4437
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stack_orchestrator/build/fetch_containers.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def _find_latest(candidate_tags: List[str]):
sorted_candidates = sorted(candidate_tags)
if opts.o.debug:
print(f"sorted candidates: {sorted_candidates}")
return sorted_candidates[0]
return sorted_candidates[-1]


def _filter_for_platform(container: str,
Expand Down

0 comments on commit 01e4437

Please sign in to comment.