]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/ceph_argparse.py: add verbose output for mgr commands 29486/head
authorluo.runbing <luo.runbing@zte.com.cn>
Mon, 5 Aug 2019 06:42:35 +0000 (14:42 +0800)
committerluo.runbing <luo.runbing@zte.com.cn>
Mon, 5 Aug 2019 06:42:35 +0000 (14:42 +0800)
Signed-off-by: luo.runbing <luo.runbing@zte.com.cn>
src/pybind/ceph_argparse.py

index 933f080c7ca2b9b40ed6166fabdd3c5ad9df1b03..5193be803bc64d808017728fa21a886e1b0b3af3 100644 (file)
@@ -1366,6 +1366,9 @@ def send_command(cluster, target=('mon', ''), cmd=None, inbuf=b'', timeout=0,
                 cluster.osd_command, osdid, cmd, inbuf, timeout=timeout)
 
         elif target[0] == 'mgr':
+            if verbose:
+                print('submit {0} to {1}'.format(cmd, target[0]),
+                      file=sys.stderr)
             ret, outbuf, outs = run_in_thread(
                 cluster.mgr_command, cmd, inbuf, timeout=timeout)