Remove _snapshot_has_external_reference from rbd driver
With the implementation of the trash feature in [1] checking for external references is not done anymore, so this code is unused. [1] https://review.opendev.org/c/openstack/glance_store/+/884524 Closes-Bug: #1959186 Partial-Bug: #2051244 Change-Id: I8e2b37441b5bb3675ebbc438f0c37d57df103ec7
This commit is contained in:
parent
d6e531af48
commit
4bdba0cae3
@ -457,14 +457,6 @@ class Store(driver.Store):
|
||||
'snapshot': DEFAULT_SNAPNAME,
|
||||
}, self.conf)
|
||||
|
||||
def _snapshot_has_external_reference(self, image, snapshot_name):
|
||||
"""Returns True if snapshot has external reference else False.
|
||||
"""
|
||||
image.set_snap(snapshot_name)
|
||||
has_references = bool(image.list_children())
|
||||
image.set_snap(None)
|
||||
return has_references
|
||||
|
||||
def _delete_image(self, target_pool, image_name,
|
||||
snapshot_name=None, context=None):
|
||||
"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user