From: Frank Brehm Date: Wed, 6 Nov 2019 13:29:37 +0000 (+0100) Subject: Changing output in lib/cr_tf/handler.py ... X-Git-Tag: 1.3.4~6 X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=6fd2dca723bb5fb14b6b7554eab77680b48f7a31;p=pixelpark%2Fcreate-terraform.git Changing output in lib/cr_tf/handler.py ... --- 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()