]> Frank Brehm's Git Trees - pixelpark/create-terraform.git/commitdiff
Fixing generation of private variables file
authorFrank Brehm <frank.brehm@pixelpark.com>
Fri, 10 Sep 2021 11:20:00 +0000 (13:20 +0200)
committerFrank Brehm <frank.brehm@pixelpark.com>
Fri, 10 Sep 2021 11:20:00 +0000 (13:20 +0200)
lib/cr_tf/handler.py

index 0d85060b5fa3421171126a63949684f457990a7b..fa441698de130eceffe2e8c01aeb3d66eafac40f 100644 (file)
@@ -67,7 +67,7 @@ from .terraform.disk import TerraformDisk
 
 from .xlate import XLATOR
 
-__version__ = '3.6.3'
+__version__ = '3.6.4'
 LOG = logging.getLogger(__name__)
 
 _ = XLATOR.gettext
@@ -2251,9 +2251,8 @@ class CreateTerraformHandler(BaseHandler):
         # create manually a file 'terraform-private.auto.tfvars"
         # with the following content:
         #
-        #   vsphere_username    = "<USERNAME>"
-        #   vsphere_userpasswd  = "<PASSWORD>"
-        #   pdns_api_key        = "<API-KEY>"
+        #   vsphere_username     = "<USERNAME>"
+        #   vsphere_userpassword = "<PASSWORD>"
         #
         # with the correct values. This file will not be under GIT control
         #
@@ -2272,9 +2271,9 @@ class CreateTerraformHandler(BaseHandler):
         if vs_user or vs_pwd:
             content = '# Private sensible information. Please keep this file secret.\n\n'
             if vs_user:
-                content += 'vsphere_username   = "{}"\n.'.format(vs_user)
+                content += 'vsphere_username     = "{}"\n'.format(vs_user)
             if vs_pwd:
-                content += 'vsphere_userpasswd = "{}""\n.'.format(vs_pwd)
+                content += 'vsphere_userpassword = "{}"\n'.format(vs_pwd)
             content += '\n'
 
             LOG.debug(_("Creating {!r} ...").format('private.auto.tfvars'))