From 84fb178fd43d0f36ece11f15a7e48579c5dd9360 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Wed, 6 Nov 2019 15:30:56 +0100 Subject: [PATCH] Fixing lib/cr_tf/handler.py --- lib/cr_tf/handler.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/cr_tf/handler.py b/lib/cr_tf/handler.py index 8a0b95c..338eed2 100644 --- a/lib/cr_tf/handler.py +++ b/lib/cr_tf/handler.py @@ -61,7 +61,7 @@ from .terraform.disk import TerraformDisk from .xlate import XLATOR -__version__ = '3.1.8' +__version__ = '3.1.9' LOG = logging.getLogger(__name__) _ = XLATOR.gettext @@ -2777,9 +2777,14 @@ class CreateTerraformHandler(BaseHandler): # -------------------------------------------------------------------------· def ensure_vsphere_folders(self): + vs_name = None + for vs_name in self.vsphere.keys(): + break + vsphere = self.vsphere[vs_name] + print() LOG.info(_("Ensuring existence of all necessary vSphere VM folders.")) - self.vsphere.ensure_vm_folders(copy.copy(self.vsphere_folders)) + vsphere.ensure_vm_folders(copy.copy(self.vsphere_folders)) # -------------------------------------------------------------------------· def exec_terraform(self): -- 2.39.5