From: Mohamad Gebai Date: Thu, 1 Mar 2018 15:31:20 +0000 (-0500) Subject: ceph.in: don't print the command's result if not in poll mode X-Git-Tag: v13.1.0~254^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3f3a18303b5f9e4c27cd88efd1e79f48dad34d0d;p=ceph.git ceph.in: don't print the command's result if not in poll mode Signed-off-by: Mohamad Gebai --- diff --git a/src/ceph.in b/src/ceph.in index 45b854f88d93..edea696e7c49 100755 --- a/src/ceph.in +++ b/src/ceph.in @@ -516,21 +516,6 @@ else: if line: return line -def run_and_print_cmd(target, cmdargs, valid_dict, sigdict, inbuf, verbose): - ret, outbuf, outs = json_command(cluster_handle, target=target, argdict=valid_dict, - inbuf=inbuf) - - if ret: - ret = abs(ret) - print('Error: {0} {1}'.format(ret, errno.errorcode.get(ret, 'Unknown')), - file=sys.stderr) - if outbuf: - print(outbuf) - if outs: - print(outs, file=sys.stderr) - - return ret, outbuf, outs - def do_command(parsed_args, target, cmdargs, sigdict, inbuf, verbose): ''' Validate a command, and handle the polling flag '''