From: Frank Brehm Date: Wed, 26 Aug 2020 08:54:05 +0000 (+0200) Subject: Adding option to disable storage cluster X-Git-Tag: 2.2.1~1^2~1^2~7^2~2 X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=90c0d901930e96639b7177b53826b62020ae81f0;p=pixelpark%2Fcreate-vmware-tpl.git Adding option to disable storage cluster --- 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