1
0
Fork 0
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:
catborise 2019-12-13 16:38:21 +03:00
parent b91f1cc36b
commit 3a925af3c2

View file

@ -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))