2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 17:43:14 +00:00

Sort list of distributions and profiles

The default sort order of listdir
isn't particularly helpful to anyone.
This commit is contained in:
Jarrod Johnson 2021-08-18 15:40:58 -04:00
parent b07ca72a8b
commit f855dda70f

View File

@ -607,10 +607,10 @@ def printit(info):
def list_distros():
return os.listdir('/var/lib/confluent/distributions')
return sorted(os.listdir('/var/lib/confluent/distributions'))
def list_profiles():
return os.listdir('/var/lib/confluent/public/os/')
return sorted(os.listdir('/var/lib/confluent/public/os/'))
def get_profile_label(profile):
with open('/var/lib/confluent/public/os/{0}/profile.yaml') as metadata: