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

index a8fb6d45d448605c2baa9f22490ec3b935d0fa0d..f1eea53726075871ab398a9c069ac2be56585763 100644 (file)
@@ -312,16 +312,14 @@ class CrTfApplication(BaseApplication):
             self.config.pdns_api_key = self.get_secret(
                 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.
-            # TODO: When the root password is used, then substitute fake password
-            #       by prompting for the real root password.
-            LOG.debug(_(
-                "Using faked root password {!r} - "
-                "but this is currently not used.").format(self.fake_root_passwd))
-            self.config.vm_root_password = self.fake_root_passwd
-#            self.config.vm_root_password = self.get_secret(
-#                prompt=_('root password for generated VMs'), item_name=_('root password'))
+#         if not self.config.vm_root_password:
+#             # Using faked root password, because it is currently not used.
+#             # TODO: When the root password is used, then substitute fake password
+#             #       by prompting for the real root password.
+#             LOG.debug(_(
+#                 "Using faked root password {!r} - "
+#                 "but this is currently not used.").format(self.fake_root_passwd))
+#             self.config.vm_root_password = self.fake_root_passwd
 
         self.handler = CreateTerraformHandler(
             appname=self.appname, verbose=self.verbose, base_dir=self.base_dir,
index cfbb2451774681ed077a6e8ade6aed9127920737..948ef0752730f273fa785da10536b3a67f9f94f3 100644 (file)
@@ -269,6 +269,9 @@ class CreateTerraformHandler(BaseHandler):
 
         if config:
             self.config = config
+            if self.verbose >= 1:
+                msg = _("Giveen configurations:") + '\n' + pp(self.config)
+                LOG.debug(msg)
 
         self.script_dir = self.base_dir.joinpath('postinstall-scripts')
         LOG.debug(_("Directory for postinstall scripts: {!r}.").format(str(self.script_dir)))