From a6a9406228da282b7331a2ae511e64818d33de3e Mon Sep 17 00:00:00 2001 From: missytake Date: Tue, 19 Dec 2023 17:08:31 +0100 Subject: [PATCH] DNS: making CLI output slightly prettier --- cmdeploy/src/cmdeploy/dns.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmdeploy/src/cmdeploy/dns.py b/cmdeploy/src/cmdeploy/dns.py index c0d5e423..2e07bd52 100644 --- a/cmdeploy/src/cmdeploy/dns.py +++ b/cmdeploy/src/cmdeploy/dns.py @@ -21,7 +21,7 @@ class DNS: except (subprocess.CalledProcessError, subprocess.TimeoutExpired) as e: str(e) if warn_reachable and ("exit status 255" in str(e) or "timed out" in str(e)): - print(f"Warning: can't reach the server with: {self.ssh[:-4]}") + self.out.red(f"\nWarning: can't reach the server with: {self.ssh[:-4]}") if retry_local: return self.out.shell_output(f"{cmd}", no_print=True) if e == subprocess.CalledProcessError: @@ -205,5 +205,5 @@ def check_necessary_dns(out, mail_domain): print(line) print() else: - print("All necessary DNS entries seem to be set.") + print("\nAll necessary DNS entries seem to be set.") return True