mirror of
https://github.com/retspen/webvirtcloud.git
synced 2026-06-08 21:34:36 +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:
@@ -29,6 +29,8 @@ class wvmCreate(wvmConnect):
|
|||||||
storages = self.get_storages()
|
storages = self.get_storages()
|
||||||
for storage in storages:
|
for storage in storages:
|
||||||
stg = self.get_storage(storage)
|
stg = self.get_storage(storage)
|
||||||
|
if not stg.isActive():
|
||||||
|
pass
|
||||||
try:
|
try:
|
||||||
stg.refresh(0)
|
stg.refresh(0)
|
||||||
except:
|
except:
|
||||||
|
|||||||
Reference in New Issue
Block a user