Skip to content

Commit 67d8a78

Browse files
authored
fix for #4 (#845)
1 parent 4644316 commit 67d8a78

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

kvirt/providers/openstack/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,8 @@ def delete(self, name, snapshots=False):
548548
volume = cinder.volumes.get(disk['id'])
549549
except cinderclient.exceptions.NotFound:
550550
continue
551+
if volume.status == "deleting":
552+
continue
551553
for attachment in volume.attachments:
552554
if attachment['server_id'] == vm.id:
553555
cinder.volumes.detach(volume, attachment['attachment_id'])

0 commit comments

Comments
 (0)