mirror of
https://github.com/ceph/ceph
synced 2025-02-24 11:37:37 +00:00
Merge pull request #29486 from runsisi/wip-fix-verbose
ceph.in: fix verbose print Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
This commit is contained in:
commit
abce85bbd2
@ -573,7 +573,7 @@ def do_command(parsed_args, target, cmdargs, sigdict, inbuf, verbose):
|
||||
next_header_print = Termsize().rows - 3
|
||||
next_header_print -= 1
|
||||
ret, outbuf, outs = json_command(cluster_handle, target=target,
|
||||
argdict=valid_dict, inbuf=inbuf)
|
||||
argdict=valid_dict, inbuf=inbuf, verbose=verbose)
|
||||
if valid_dict.get('poll', False):
|
||||
valid_dict['print_header'] = False
|
||||
if not valid_dict.get('poll', False):
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user