From 90c0d901930e96639b7177b53826b62020ae81f0 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Wed, 26 Aug 2020 10:54:05 +0200 Subject: [PATCH] Adding option to disable storage cluster --- lib/cr_vmware_tpl/config.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/cr_vmware_tpl/config.py b/lib/cr_vmware_tpl/config.py index 754ba24..35a10ca 100644 --- a/lib/cr_vmware_tpl/config.py +++ b/lib/cr_vmware_tpl/config.py @@ -22,7 +22,7 @@ from fb_tools.config import ConfigError, BaseConfiguration from .xlate import XLATOR -__version__ = '1.6.0' +__version__ = '1.6.1' LOG = logging.getLogger(__name__) _ = XLATOR.gettext @@ -359,8 +359,12 @@ class CrTplConfiguration(BaseConfiguration): datastores = re_split_ds.split(value.strip()) self.excluded_datastores = datastores - elif re_storage_cluster.search(key) and value.strip(): - self.storage_cluster = value.strip() + elif re_storage_cluster.search(key): + cl_name = value.strip() + if cl_name: + self.storage_cluster = cl_name + else: + self.storage_cluster = None return -- 2.39.5