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:
parent
ebf251ff5e
commit
2dc83f39a2
2 changed files with 12 additions and 5 deletions
|
|
@ -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))
|
||||
Loading…
Add table
Add a link
Reference in a new issue