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