2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-12-23 19:52:10 +00:00

Draft tabular output of disk information

Print out roughly the data that will be desired in the storage show.
This commit is contained in:
Jarrod Johnson 2018-10-30 16:10:37 -04:00
parent 6378f823f3
commit a034d05cc8

View File

@ -57,8 +57,12 @@ def showstorage(noderange, options, args):
curr = e['databynode'][node]
storagebynode[node][curr['type'] + 's'].append(curr)
for node in storagebynode:
print('{0:10}{1:28}{2:10}{3:10}'.format('Disk', 'Description',
'Status', 'Serial', 'FRU'))
for disk in storagebynode[node]['disks']:
print(repr(disk))
print('{0:10}{1:28}{2:10}{3:10}'.format(
disk['name'], disk['description'], disk['status'],
disk['serial'], disk['fru']))
def createstorage(noderange, options, args):