]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
pybind/ceph_mgr_repl: define "timeout" opt as an int
authorKefu Chai <kchai@redhat.com>
Tue, 1 Jun 2021 12:40:16 +0000 (20:40 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 2 Jun 2021 08:55:43 +0000 (16:55 +0800)
otherwise it would be a str, which would be rejected by the underlying
`json_command()` method.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/pybind/ceph_mgr_repl.py

index ea35719a05c1f298c69d6ef81176d9893813f89f..159abdc99a5e4409b316fcd013f88201fa05a466 100755 (executable)
@@ -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',