1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-12-24 23:25:24 +00:00

Add pool refresh before getting list of volumes

This commit is contained in:
catborise 2018-12-03 16:18:41 +03:00
parent a519980610
commit fc3f04c244

View file

@ -221,6 +221,7 @@ def get_volumes(request, compute_id, pool):
compute.password, compute.password,
compute.type, compute.type,
pool) pool)
conn.refresh()
except libvirtError as liberr: except libvirtError as liberr:
pass pass
data['vols'] = sorted(conn.get_volumes()) data['vols'] = sorted(conn.get_volumes())