mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-23 01:53:28 +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:
parent
b07ca72a8b
commit
f855dda70f
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user