From 4ecb7783ac1c1095a0c9b611648633b280eac268 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Wed, 6 Nov 2019 13:59:28 +0100 Subject: [PATCH] Fixing lib/cr_tf/handler.py --- lib/cr_tf/handler.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/cr_tf/handler.py b/lib/cr_tf/handler.py index 9fd9a1d..6f05a4b 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.2' +__version__ = '3.1.3' LOG = logging.getLogger(__name__) _ = XLATOR.gettext @@ -2087,10 +2087,11 @@ class CreateTerraformHandler(BaseHandler): # -------------------------------------------------------------------------- def create_varfiles(self): - #vs_name = None - #for vs_name in self.vsphere: - # break - vs_name = str([self.vsphere.keys()][0]) + # vs_name = str([self.vsphere.keys()][0]) + vs_name = None + for vs_name in self.vsphere.keys(): + break + LOG.debug(_("Creating varfile for VSPhere {!r} ...").format(vs_name)) vs_host = self.config.vsphere[vs_name].host vs_port = self.config.vsphere[vs_name].port -- 2.39.5