From 73ce98b63ef8fd8b149a3f3af4cc9e20c26d2a80 Mon Sep 17 00:00:00 2001 From: catborise Date: Fri, 20 Jul 2018 11:05:24 +0300 Subject: [PATCH] if there is some inactive storages, listing volumes causes exception then breaks.. checking activeness of storage pool fixes that --- vrtManager/create.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vrtManager/create.py b/vrtManager/create.py index 9fc8d98..27971bd 100644 --- a/vrtManager/create.py +++ b/vrtManager/create.py @@ -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: