Skip to content

Commit

Permalink
return sorted so backend name match frontend name in stats page
Browse files Browse the repository at this point in the history
  • Loading branch information
joshhighet committed Dec 13, 2023
1 parent aab8b93 commit 7983fac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion haconfig/gen_conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ def get_dockernet_hostnames():
and (container.attrs["NetworkSettings"]["Networks"]["net_tor"]["NetworkID"] == net_tor_id)
and (container.attrs["Config"]["User"] == "tor")
]
return container_names
sorted_container_names = sorted(container_names, key=lambda x: int(x.split('-')[-1]))
return sorted_container_names

if __name__ == "__main__":
cihosts = get_dockernet_hostnames()
Expand Down

0 comments on commit 7983fac

Please sign in to comment.