X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ceph%2Fsrc%2Fpybind%2Fmgr%2Frbd_support%2Fmodule.py;h=369face038ad2a4d0899821adf1118432d88bd01;hb=05a536ef04248702f72713fd2fe81cb055624784;hp=c856418f99246be20e64dcdcd73443801e8b942a;hpb=ab27109dd2e88c6e1082a346b3be8444697297c6;p=ceph.git diff --git a/ceph/src/pybind/mgr/rbd_support/module.py b/ceph/src/pybind/mgr/rbd_support/module.py index c856418f9..369face03 100644 --- a/ceph/src/pybind/mgr/rbd_support/module.py +++ b/ceph/src/pybind/mgr/rbd_support/module.py @@ -38,7 +38,8 @@ def with_latest_osdmap(func: FuncT) -> FuncT: @functools.wraps(func) def wrapper(self: 'Module', *args: Any, **kwargs: Any) -> Tuple[int, str, str]: if not self.module_ready: - return -errno.EAGAIN, "", "" + return (-errno.EAGAIN, "", + "rbd_support module is not ready, try again") # ensure we have latest pools available self.rados.wait_for_latest_osdmap() try: