From: Frank Brehm Date: Wed, 6 Nov 2019 12:54:56 +0000 (+0100) Subject: Fixing lib/cr_tf/handler.py X-Git-Tag: 1.3.4~9 X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=09675e4421223f11444dedfeae6254866f006f5b;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 8b71d18..9fd9a1d 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.1' +__version__ = '3.1.2' LOG = logging.getLogger(__name__) _ = XLATOR.gettext @@ -2087,7 +2087,11 @@ class CreateTerraformHandler(BaseHandler): # -------------------------------------------------------------------------- def create_varfiles(self): - vs_name = str(self.vsphere.keys()[0]) + #vs_name = None + #for vs_name in self.vsphere: + # break + vs_name = str([self.vsphere.keys()][0]) + vs_host = self.config.vsphere[vs_name].host vs_port = self.config.vsphere[vs_name].port vs_user = self.config.vsphere[vs_name].user