From: Frank Brehm Date: Wed, 6 Nov 2019 14:30:56 +0000 (+0100) Subject: Fixing lib/cr_tf/handler.py X-Git-Tag: 1.3.4~1 X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=84fb178fd43d0f36ece11f15a7e48579c5dd9360;p=pixelpark%2Fcreate-terraform.git Fixing lib/cr_tf/handler.py --- 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):