From: Kefu Chai Date: Fri, 5 Feb 2021 16:54:21 +0000 (+0800) Subject: mgr/rbd_support: level_spec passed to some commands is not optional X-Git-Tag: v17.1.0~2831^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=fea6fdff4c741c8f30a2fd4a708fc369fc1c21e0;p=ceph.git mgr/rbd_support: level_spec passed to some commands is not optional we always need a valid level_spec for creating a LevelSpec instance Signed-off-by: Kefu Chai --- diff --git a/src/pybind/mgr/rbd_support/module.py b/src/pybind/mgr/rbd_support/module.py index 91064870c7f..c8526cd9eec 100644 --- a/src/pybind/mgr/rbd_support/module.py +++ b/src/pybind/mgr/rbd_support/module.py @@ -113,7 +113,7 @@ class Module(MgrModule): @CLIReadCommand('rbd mirror snapshot schedule list') @with_latest_osdmap def mirror_snapshot_schedule_list(self, - level_spec: Optional[str]) -> Tuple[int, str, str]: + level_spec: str) -> Tuple[int, str, str]: """ List rbd mirror snapshot schedule """ @@ -123,7 +123,7 @@ class Module(MgrModule): @CLIReadCommand('rbd mirror snapshot schedule status') @with_latest_osdmap def mirror_snapshot_schedule_status(self, - level_spec: Optional[str] = None) -> Tuple[int, str, str]: + level_spec: str) -> Tuple[int, str, str]: """ Show rbd mirror snapshot schedule status """ @@ -253,7 +253,7 @@ class Module(MgrModule): @CLIReadCommand('rbd trash purge schedule list') @with_latest_osdmap def trash_purge_schedule_list(self, - level_spec: Optional[str] = None) -> Tuple[int, str, str]: + level_spec: str) -> Tuple[int, str, str]: """ List rbd trash purge schedule """ @@ -263,7 +263,7 @@ class Module(MgrModule): @CLIReadCommand('rbd trash purge schedule status') @with_latest_osdmap def trash_purge_schedule_status(self, - level_spec: Optional[str] = None) -> Tuple[int, str, str]: + level_spec: str) -> Tuple[int, str, str]: """ Show rbd trash purge schedule status """