]> Frank Brehm's Git Trees - pixelpark/create-terraform.git/commitdiff
Extendig debug output.
authorFrank Brehm <frank.brehm@pixelpark.com>
Mon, 6 Sep 2021 14:51:39 +0000 (16:51 +0200)
committerFrank Brehm <frank.brehm@pixelpark.com>
Mon, 6 Sep 2021 14:51:39 +0000 (16:51 +0200)
lib/cr_tf/app.py
lib/cr_tf/terraform/vm.py

index fbc76f5af09afa5a2fa68646f1ce49426adb7a20..a8fb6d45d448605c2baa9f22490ec3b935d0fa0d 100644 (file)
@@ -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.
index 85e9ecf83efba22e8be83ecbe2d1af1c64e7f418..bc7ca7c5b65cab799046ee0b187607694c748bed 100644 (file)
@@ -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