mirror of
https://github.com/retspen/webvirtcloud
synced 2024-12-24 15:15:22 +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,
|
||||
pool)
|
||||
conn.refresh()
|
||||
data['vols'] = sorted(conn.get_volumes())
|
||||
except libvirtError:
|
||||
pass
|
||||
data['vols'] = sorted(conn.get_volumes())
|
||||
return HttpResponse(json.dumps(data))
|
||||
|
|
Loading…
Reference in a new issue