From fcd46c7b72d27c279273ebb0f2c5e9a85b009bbb Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 15 Nov 2018 16:18:24 -0500 Subject: [PATCH] Provide cleaner output for nodestorage delete Rather than dumping the structure of the response, provide a consistent plain text output. --- confluent_client/bin/nodestorage | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/confluent_client/bin/nodestorage b/confluent_client/bin/nodestorage index 637ff316..4bcb33fe 100644 --- a/confluent_client/bin/nodestorage +++ b/confluent_client/bin/nodestorage @@ -125,7 +125,10 @@ def deletestorage(noderange, options, args): for rsp in session.delete( '/noderange/{0}/configuration/storage/volumes/{1}'.format( noderange, names)): - print(repr(rsp)) + if 'deleted' in rsp: + print('Deleted: {0}'.format(rsp['deleted'])) + else: + print(repr(rsp)) def setstorage(noderange, options, args):