]> Frank Brehm's Git Trees - pixelpark/create-terraform.git/commitdiff
Changing output in lib/cr_tf/handler.py ...
authorFrank Brehm <frank.brehm@pixelpark.com>
Wed, 6 Nov 2019 13:29:37 +0000 (14:29 +0100)
committerFrank Brehm <frank.brehm@pixelpark.com>
Wed, 6 Nov 2019 13:29:37 +0000 (14:29 +0100)
lib/cr_tf/handler.py

index ba238ae34b840abeaf84d7ede72fe7bd6a191b25..ac8cff4398645f51f3e465fc8127b13bc7599414 100644 (file)
@@ -2077,7 +2077,20 @@ class CreateTerraformHandler(BaseHandler):
     def create_terraform_files(self):
 
         print()
-        LOG.info(_("Creating all necessary files for terraform."))
+        print()
+        #LOG.info(_("Creating all necessary files for terraform."))
+        msg = _("Creating all necessary files for terraform.")
+        ll = 6
+        if len(msg) > ll:
+            ll = len(msg)
+        print(self.colored('#' * (ll + 6), 'AQUA'))
+        line = self.colored('#', 'AQUA') + '  '
+        line += self.colored(msg.center(ll), 'YELLOW')
+        line += '  ' + self.colored('#', 'AQUA')
+        print(line)
+        print(self.colored('#' * (ll + 6), 'AQUA'))
+        print()
+        print()
 
         self.create_varfiles()
         self.create_dcfile()