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:
parent
7200a34699
commit
73ce98b63e
1 changed files with 2 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue