From: Kefu Chai Date: Tue, 1 Jun 2021 12:40:16 +0000 (+0800) Subject: pybind/ceph_mgr_repl: define "timeout" opt as an int X-Git-Tag: v17.1.0~1773^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0db455bede7a54f4743810ac53e2c988cc673ae7;p=ceph.git 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 --- diff --git a/src/pybind/ceph_mgr_repl.py b/src/pybind/ceph_mgr_repl.py index ea35719a05c1..159abdc99a5e 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',