From fe978a1971311e502568c94a4e1d60abd1c3672f Mon Sep 17 00:00:00 2001 From: missytake Date: Wed, 20 Dec 2023 14:57:29 +0100 Subject: [PATCH] DNS: increase SSH command's timeout to 10 seconds (the default) --- cmdeploy/src/cmdeploy/dns.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmdeploy/src/cmdeploy/dns.py b/cmdeploy/src/cmdeploy/dns.py index 5319a7f7..c7e4e019 100644 --- a/cmdeploy/src/cmdeploy/dns.py +++ b/cmdeploy/src/cmdeploy/dns.py @@ -19,7 +19,7 @@ class DNS: def shell(self, cmd): try: - return self.out.shell_output(f"{self.ssh}{cmd}", no_print=True, timeout=3) + return self.out.shell_output(f"{self.ssh}{cmd}", no_print=True) except (subprocess.CalledProcessError, subprocess.TimeoutExpired) as e: if "exit status 255" in str(e) or "timed out" in str(e): self.out.red(f"Error: can't reach the server with: {self.ssh[:-4]}")