]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.in: don't print the command's result if not in poll mode
authorMohamad Gebai <mgebai@suse.com>
Thu, 1 Mar 2018 15:31:20 +0000 (10:31 -0500)
committerMohamad Gebai <mgebai@suse.com>
Thu, 12 Apr 2018 04:26:24 +0000 (00:26 -0400)
Signed-off-by: Mohamad Gebai <mgebai@suse.com>
src/ceph.in

index 45b854f88d9354530929e941863bb071e1f4eeb0..edea696e7c49aa94db5c83d2e391baf0588b7448 100755 (executable)
@@ -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 '''