]> Frank Brehm's Git Trees - pixelpark/create-terraform.git/commitdiff
Fixing lib/cr_tf/handler.py
authorFrank Brehm <frank.brehm@pixelpark.com>
Wed, 6 Nov 2019 12:54:56 +0000 (13:54 +0100)
committerFrank Brehm <frank.brehm@pixelpark.com>
Wed, 6 Nov 2019 12:54:56 +0000 (13:54 +0100)
lib/cr_tf/handler.py

index 8b71d189a804b22f32e83a99e914efb631c20dd1..9fd9a1d9561beb65bcb8e77fba79880dc7b0e9e7 100644 (file)
@@ -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