From 31140f4af79809b7d263038f43846deb4b96ad3f Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Fri, 10 Sep 2021 13:20:00 +0200 Subject: [PATCH] Fixing generation of private variables file --- lib/cr_tf/handler.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/lib/cr_tf/handler.py b/lib/cr_tf/handler.py index 0d85060..fa44169 100644 --- a/lib/cr_tf/handler.py +++ b/lib/cr_tf/handler.py @@ -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 = "" - # vsphere_userpasswd = "" - # pdns_api_key = "" + # vsphere_username = "" + # vsphere_userpassword = "" # # 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')) -- 2.39.5