Sort tenant list by name
Since we no longer create a new abide instance during reconfigurations and just replace the tenant instance, the tenants are not longer sorted in the order they appear in the config but depending on which one was recently reconfigured. From a users perspective it makes sense that the list of tenants is sorted alphabetically. Change-Id: Ie9ae0700fd3928cc1f8f93d1de77537ce97518cd
This commit is contained in:
parent
a2b8b975d0
commit
eaa9a43fcd
|
@ -330,7 +330,7 @@ class RPCListener(RPCListenerBase):
|
|||
|
||||
def handle_tenant_list(self, job):
|
||||
output = []
|
||||
for tenant_name, tenant in self.sched.abide.tenants.items():
|
||||
for tenant_name, tenant in sorted(self.sched.abide.tenants.items()):
|
||||
queue_size = 0
|
||||
for pipeline_name, pipeline in tenant.layout.pipelines.items():
|
||||
for queue in pipeline.queues:
|
||||
|
|
Loading…
Reference in New Issue