From: Patrick Nawracay Date: Tue, 15 Jan 2019 12:49:03 +0000 (+0100) Subject: ceph_argparse: fix --verbose X-Git-Tag: v14.1.0~349^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d207abf8d02655a1524799dd22dcb403945768ec;p=ceph.git ceph_argparse: fix --verbose Fixes traceback when issuing `ceph --verbose osd purge `. Signed-off-by: Patrick Nawracay --- diff --git a/src/pybind/ceph_argparse.py b/src/pybind/ceph_argparse.py index 26c24f27512..0071e62b62f 100644 --- a/src/pybind/ceph_argparse.py +++ b/src/pybind/ceph_argparse.py @@ -1138,7 +1138,7 @@ def validate_command(sigdict, args, verbose=False): if matched < best_match_cnt: continue if verbose: - print("better match: {0} > {1}: {3} ".format( + print("better match: {0} > {1}: {2} ".format( matched, best_match_cnt, concise_sig(sig) ), file=sys.stderr) if matched > best_match_cnt: