mirror of
https://github.com/retspen/webvirtcloud
synced 2025-01-12 16:35:17 +00:00
fix connection undefined error while getting volumes
This commit is contained in:
parent
b91f1cc36b
commit
3a925af3c2
1 changed files with 1 additions and 1 deletions
|
@ -226,7 +226,7 @@ def get_volumes(request, compute_id, pool):
|
||||||
compute.type,
|
compute.type,
|
||||||
pool)
|
pool)
|
||||||
conn.refresh()
|
conn.refresh()
|
||||||
|
data['vols'] = sorted(conn.get_volumes())
|
||||||
except libvirtError:
|
except libvirtError:
|
||||||
pass
|
pass
|
||||||
data['vols'] = sorted(conn.get_volumes())
|
|
||||||
return HttpResponse(json.dumps(data))
|
return HttpResponse(json.dumps(data))
|
||||||
|
|
Loading…
Reference in a new issue