From 0db455bede7a54f4743810ac53e2c988cc673ae7 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Tue, 1 Jun 2021 20:40:16 +0800 Subject: [PATCH] pybind/ceph_mgr_repl: define "timeout" opt as an int otherwise it would be a str, which would be rejected by the underlying `json_command()` method. Signed-off-by: Kefu Chai --- src/pybind/ceph_mgr_repl.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pybind/ceph_mgr_repl.py b/src/pybind/ceph_mgr_repl.py index ea35719a05c..159abdc99a5 100755 --- a/src/pybind/ceph_mgr_repl.py +++ b/src/pybind/ceph_mgr_repl.py @@ -101,6 +101,7 @@ Please set the environment variables first: default='mgr self-test eval', help='command prefix for eval the source') parser.add_argument('--timeout', action='store', + type=int, default=10, help='timeout in seconds') parser.add_argument('--show-env', action='store_true', -- 2.39.5