]> git-server-git.apps.pok.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>
Thu, 18 Feb 2021 14:46:51 +0000 (22:46 +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>
src/pybind/mgr/rbd_support/mirror_snapshot_schedule.py

index ad30ab3c5ed958550f5fd7228bf8582652141510..88222a420dd056f5b13c596b6caa947f82d8847e 100644 (file)
@@ -260,7 +260,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)