Merge "[Netapp] Fix soft_delete_snapshot get children case"
This commit is contained in:
commit
7de1b3afb1
@ -3567,7 +3567,7 @@ class NetAppCmodeClient(client_base.NetAppBaseClient):
|
||||
|
||||
# Snapshots are locked by clone(s), so split the clone(s)
|
||||
snapshot_children = self.get_clone_children_for_snapshot(
|
||||
volume_name, snapshot_name)
|
||||
volume_name, DELETED_PREFIX + snapshot_name)
|
||||
for snapshot_child in snapshot_children:
|
||||
self.volume_clone_split_start(snapshot_child['name'])
|
||||
|
||||
|
@ -5172,7 +5172,7 @@ class NetAppClientCmodeTestCase(test.TestCase):
|
||||
fake.SHARE_NAME, fake.SNAPSHOT_NAME,
|
||||
'deleted_manila_' + fake.SNAPSHOT_NAME)
|
||||
mock_get_clone_children_for_snapshot.assert_called_once_with(
|
||||
fake.SHARE_NAME, fake.SNAPSHOT_NAME)
|
||||
fake.SHARE_NAME, 'deleted_manila_' + fake.SNAPSHOT_NAME)
|
||||
mock_volume_clone_split_start.assert_has_calls([
|
||||
mock.call(fake.CDOT_CLONE_CHILD_1),
|
||||
mock.call(fake.CDOT_CLONE_CHILD_2),
|
||||
|
Loading…
Reference in New Issue
Block a user