Skip to content

Commit

Permalink
sort
Browse files Browse the repository at this point in the history
  • Loading branch information
maorfr committed Sep 10, 2024
1 parent b677614 commit 6fad5ed
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion reconcile/openshift_tekton_resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,12 @@ def fetch_tkn_providers(saas_file_name: str | None) -> dict[str, Any]:

tkn_providers[provider_name]["saas_files"].append(sf)

for provider_name in tkn_providers:
tkn_providers[provider_name]["saas_files"].sort(key=lambda sf: sf["name"])

return {
provider_name: sf
for provider_name, sf in tkn_providers.items()
for provider_name, sf in sorted(tkn_providers.items())
if is_in_shard(provider_name)
}

Expand Down

0 comments on commit 6fad5ed

Please sign in to comment.