]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph_argparse: fix --verbose 25961/head
authorPatrick Nawracay <pnawracay@suse.com>
Tue, 15 Jan 2019 12:49:03 +0000 (13:49 +0100)
committerPatrick Nawracay <pnawracay@suse.com>
Tue, 15 Jan 2019 12:55:18 +0000 (13:55 +0100)
Fixes traceback when issuing `ceph --verbose osd purge <id>`.

Signed-off-by: Patrick Nawracay <pnawracay@suse.com>
src/pybind/ceph_argparse.py

index 26c24f275123dca42decfd903077fbcbb1237470..0071e62b62fb387a77923b5809860f9ad971630c 100644 (file)
@@ -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: