From 6fd2dca723bb5fb14b6b7554eab77680b48f7a31 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Wed, 6 Nov 2019 14:29:37 +0100 Subject: [PATCH] Changing output in lib/cr_tf/handler.py ... --- lib/cr_tf/handler.py | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/lib/cr_tf/handler.py b/lib/cr_tf/handler.py index ba238ae..ac8cff4 100644 --- a/lib/cr_tf/handler.py +++ b/lib/cr_tf/handler.py @@ -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() -- 2.39.5