]> Frank Brehm's Git Trees - pixelpark/create-vmware-tpl.git/commitdiff
Adding option to disable storage cluster
authorFrank Brehm <frank.brehm@pixelpark.com>
Wed, 26 Aug 2020 08:54:05 +0000 (10:54 +0200)
committerFrank Brehm <frank.brehm@pixelpark.com>
Wed, 26 Aug 2020 08:54:05 +0000 (10:54 +0200)
lib/cr_vmware_tpl/config.py

index 754ba24b3e68af81b8ded596dee0d850e1dcc88e..35a10caaf43369eaa67e6bb2a135cba6c40e8c4e 100644 (file)
@@ -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