From: luo.runbing Date: Mon, 5 Aug 2019 06:42:35 +0000 (+0800) Subject: pybind/ceph_argparse.py: add verbose output for mgr commands X-Git-Tag: v15.1.0~1921^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f427749f20826c28d3ff9823d8b61c733f5c55eb;p=ceph.git pybind/ceph_argparse.py: add verbose output for mgr commands Signed-off-by: luo.runbing --- diff --git a/src/pybind/ceph_argparse.py b/src/pybind/ceph_argparse.py index 933f080c7ca..5193be803bc 100644 --- a/src/pybind/ceph_argparse.py +++ b/src/pybind/ceph_argparse.py @@ -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)