]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/rbd_support: pass image to close_image()
authorKefu Chai <kchai@redhat.com>
Fri, 5 Feb 2021 11:11:40 +0000 (19:11 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 28 Feb 2021 04:39:45 +0000 (12:39 +0800)
as its function signature is

close_image(self, image_spec, image)

Fixes: https://tracker.ceph.com/issues/49355
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 2bdaed84c4cb16238f6cbeac900a9a906352ef77)

src/pybind/mgr/rbd_support/mirror_snapshot_schedule.py

index 4be6bc33a95eef30ce262a54a285dfa4da8c9bbf..9751d44e4a3dde655c1e8df926a55f36cf549cd3 100644 (file)
@@ -262,7 +262,7 @@ class CreateSnapshotRequests:
                 "CreateSnapshotRequests.handle_get_mirror_mode: {}/{}/{}: {}".format(
                     pool_id, namespace, image_id,
                     "snapshot mirroring is not enabled"))
-            self.close_image(image_spec)
+            self.close_image(image_spec, image)
 
         self.get_mirror_info(image_spec, image)