From: Frank Brehm Date: Mon, 6 Sep 2021 14:51:39 +0000 (+0200) Subject: Extendig debug output. X-Git-Tag: 1.5.2^2~22 X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=7ab10e2078a09f42c1c30016df40b22c6259c026;p=pixelpark%2Fcreate-terraform.git Extendig debug output. --- diff --git a/lib/cr_tf/app.py b/lib/cr_tf/app.py index fbc76f5..a8fb6d4 100644 --- a/lib/cr_tf/app.py +++ b/lib/cr_tf/app.py @@ -310,7 +310,7 @@ class CrTfApplication(BaseApplication): url += self.config.pdns_api_path_prefix prompt = _('PowerDNS API key for {!r}').format(url) self.config.pdns_api_key = self.get_secret( - prompt=prompt, item_name=_('PowerDNS API key')) + prompt=prompt, item_name=self.colored(_('PowerDNS API key'), 'AQUA')) if not self.config.vm_root_password: # Using faked root password, because it is currently not used. diff --git a/lib/cr_tf/terraform/vm.py b/lib/cr_tf/terraform/vm.py index 85e9ecf..bc7ca7c 100644 --- a/lib/cr_tf/terraform/vm.py +++ b/lib/cr_tf/terraform/vm.py @@ -295,7 +295,7 @@ class TerraformVm(HandlingObject): @classmethod def _apply_vmdef2vm(cls, vm, key, value, verbose=0, appname=None, base_dir=None): - if verbose > 3: + if verbose > 1: LOG.debug(_("Evaluating key {k!r}: {v}").format(k=key, v=value)) if cls._apply_general_vmdef2vm(vm, key, value, verbose): @@ -380,6 +380,8 @@ class TerraformVm(HandlingObject): return True if key.lower() == 'vsphere' and value: + if verbose > 1: + LOG.debug(_("Applying vSphere {!r} to VM.").format(value)) vm.vsphere = value return