1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2025-07-31 12:41:08 +00:00

Check media before adding new/existing volume

This commit is contained in:
catborise 2019-02-14 16:49:12 +03:00
parent ebf251ff5e
commit 2dc83f39a2
2 changed files with 12 additions and 5 deletions

View file

@ -222,7 +222,7 @@ def get_volumes(request, compute_id, pool):
compute.type,
pool)
conn.refresh()
except libvirtError as liberr:
except libvirtError:
pass
data['vols'] = sorted(conn.get_volumes())
return HttpResponse(json.dumps(data))