From 84b4c53db8609243355f5d5877016b3508f60ebc Mon Sep 17 00:00:00 2001 From: Sean Buckley Date: Thu, 23 Mar 2023 17:20:24 -0400 Subject: [PATCH] deploy: exec: do not remove leading spaces --- pkgs/deploy/deploy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/deploy/deploy.py b/pkgs/deploy/deploy.py index 37f86fc..37c77cd 100755 --- a/pkgs/deploy/deploy.py +++ b/pkgs/deploy/deploy.py @@ -143,7 +143,7 @@ def rexec(hosts, cmd): hostwidth = max(map(len, hosts)) for host in hosts: r = run(["ssh", host, "--"] + cmd, stdout=PIPE, stderr=STDOUT) - lines = r.stdout.decode("utf8").strip().splitlines() + lines = r.stdout.decode("utf8").strip("\n").splitlines() print(host.rjust(hostwidth), end=" ") print(icon_bad if r.returncode else icon_good, end=" ") if len(lines) == 1: