mirror of
https://github.com/ceph/ceph
synced 2025-01-10 21:20:46 +00:00
Merge pull request #38211 from ricardoasmarques/sort-host-device-ls
mgr/orchestrator: Sort 'ceph orch device ls' by host Reviewed-by: Thomas Bechtold <tbechtold@suse.com> Reviewed-by: Sebastian Wagner <swagner@suse.com>
This commit is contained in:
commit
f792e90374
@ -405,7 +405,7 @@ class OrchestratorCli(OrchestratorClientMixin, MgrModule,
|
||||
table._align['SIZE'] = 'r'
|
||||
table.left_padding_width = 0
|
||||
table.right_padding_width = 2
|
||||
for host_ in completion.result: # type: InventoryHost
|
||||
for host_ in sorted(completion.result, key=lambda h: h.name): # type: InventoryHost
|
||||
for d in host_.devices.devices: # type: Device
|
||||
|
||||
led_ident = 'N/A'
|
||||
|
Loading…
Reference in New Issue
Block a user