Show More
@@ -87,7 +87,9 b' class ClusterManager(LoggingConfigurable):' | |||||
87 |
|
87 | |||
88 | def list_profiles(self): |
|
88 | def list_profiles(self): | |
89 | self.update_profiles() |
|
89 | self.update_profiles() | |
90 | result = [self.profile_info(p) for p in sorted(self.profiles.keys())] |
|
90 | # sorted list, but ensure that 'default' always comes first | |
|
91 | default_first = lambda name: name if name != 'default' else '' | |||
|
92 | result = [self.profile_info(p) for p in sorted(self.profiles, key=default_first)] | |||
91 | return result |
|
93 | return result | |
92 |
|
94 | |||
93 | def check_profile(self, profile): |
|
95 | def check_profile(self, profile): |
General Comments 0
You need to be logged in to leave comments.
Login now