2
0
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:
Jarrod Johnson 2018-10-30 16:28:59 -04:00
parent 115a6e9dd1
commit 5d358eaeb0

View File

@ -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):