From: Jason Dillaman Date: Mon, 22 Jul 2019 15:04:53 +0000 (-0400) Subject: pybind/mgr: rbd tasks now provide a dict to the progress events X-Git-Tag: v15.1.0~2058^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e87aff5a90e115cbe7108e0dc89f60092fbe7d64;p=ceph.git pybind/mgr: rbd tasks now provide a dict to the progress events This dict will include an origin key fixed to 'rbd_support' as well as pool and image references. Signed-off-by: Jason Dillaman --- diff --git a/src/pybind/mgr/rbd_support/module.py b/src/pybind/mgr/rbd_support/module.py index 15c0e14ff05c..a95377ff82d4 100644 --- a/src/pybind/mgr/rbd_support/module.py +++ b/src/pybind/mgr/rbd_support/module.py @@ -935,9 +935,11 @@ class TaskHandler: def update_progress(self, task, progress): self.log.debug("update_progress: task={}, progress={}".format(str(task), progress)) try: + refs = {"origin": "rbd_support"} + refs.update(task.refs) + self.module.remote("progress", "update", task.task_id, - task.message, progress, - ["rbd_support"]) + task.message, progress, refs) except ImportError: # progress module is disabled pass