mirror of
https://github.com/xcat2/confluent.git
synced 2024-12-24 12:11:52 +00:00
Switch to output format more like nodeinventory
Other confluent commands (apart from nodediscovery) set a particular convention. Go by that convention (at least by default)
This commit is contained in:
parent
115a6e9dd1
commit
5d358eaeb0
@ -57,12 +57,9 @@ 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('{0:10}{1:28}{2:10}{3:10}'.format(
|
||||
disk['name'], disk['description'], disk['status'],
|
||||
disk['serial'], disk['fru']))
|
||||
print('{0}: {1} Description: {2}'.format(
|
||||
node, disk['label'], disk['description']))
|
||||
|
||||
|
||||
def createstorage(noderange, options, args):
|
||||
|
Loading…
Reference in New Issue
Block a user