From: Frank Brehm Date: Fri, 10 Sep 2021 11:20:00 +0000 (+0200) Subject: Fixing generation of private variables file X-Git-Tag: 1.5.4^2~2 X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=31140f4af79809b7d263038f43846deb4b96ad3f;p=pixelpark%2Fcreate-terraform.git Fixing generation of private variables file --- 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'))