Commit 47a6ceec authored by Kristian Feldsam's avatar Kristian Feldsam
Browse files

Check for soft-deleted snapshots

Signed-off-by: Kristian Feldsam's avatarKristián Feldsam <>
parent 7badf692
......@@ -119,6 +119,11 @@ def backup_live(one, image, vm, vm_disk_id, verbose):
while not done:
volume = cl.getVolume(snap_name)
# check for soft-deleted snapshot
if volume.get('expirationTimeSec'):
raise exceptions.HTTPNotFound
done = True
except exceptions.HTTPNotFound:
# failed after 60s
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment