]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/mgr: rbd tasks now provide a dict to the progress events
authorJason Dillaman <dillaman@redhat.com>
Mon, 22 Jul 2019 15:04:53 +0000 (11:04 -0400)
committerJason Dillaman <dillaman@redhat.com>
Thu, 25 Jul 2019 12:58:37 +0000 (08:58 -0400)
This dict will include an origin key fixed to 'rbd_support' as well
as pool and image references.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/pybind/mgr/rbd_support/module.py

index 15c0e14ff05c3c2f434733ffef663751a3e94da1..a95377ff82d4d442ec5a532a380c961c596c79c2 100644 (file)
@@ -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