mirror of
https://github.com/ceph/ceph
synced 2024-12-27 14:03:25 +00:00
tool/ceph: print return code when json_command failed
Signed-off-by: liuchang0812 <liuchang0812@gmail.com>
This commit is contained in:
parent
282f8d4caf
commit
08cb697a1d
@ -363,9 +363,9 @@ def do_extended_help(parser, args, target, partial):
|
||||
prefix='get_command_descriptions',
|
||||
timeout=10)
|
||||
if ret:
|
||||
print("couldn't get command descriptions for {0}: {1}".
|
||||
format(target, outs), file=sys.stderr)
|
||||
return 1
|
||||
print("couldn't get command descriptions for {0}: {1} ({2})".
|
||||
format(target, outs, ret), file=sys.stderr)
|
||||
return ret
|
||||
else:
|
||||
return help_for_sigs(outbuf.decode('utf-8'), partial)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user