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

if there is some inactive storages, listing volumes causes exception then breaks.. checking activeness of storage pool fixes that

This commit is contained in:
catborise 2018-07-20 11:05:24 +03:00
parent 7200a34699
commit 73ce98b63e

View file

@ -29,6 +29,8 @@ class wvmCreate(wvmConnect):
storages = self.get_storages()
for storage in storages:
stg = self.get_storage(storage)
if not stg.isActive():
pass
try:
stg.refresh(0)
except: