From 5d358eaeb00c051b42629dcce6cb6237723b3549 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 30 Oct 2018 16:28:59 -0400 Subject: [PATCH] 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) --- confluent_client/bin/nodestorage | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/confluent_client/bin/nodestorage b/confluent_client/bin/nodestorage index 2003beea..50784e7d 100644 --- a/confluent_client/bin/nodestorage +++ b/confluent_client/bin/nodestorage @@ -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):