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:
parent
a519980610
commit
fc3f04c244
1 changed files with 1 additions and 0 deletions
|
@ -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())
|
||||||
|
|
Loading…
Reference in a new issue