mirror of
				https://github.com/xcat2/confluent.git
				synced 2025-10-31 03:12:31 +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:
		| @@ -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: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user