From 7e35e54a718b2a22c1a0a87b49d8878b55cc8b1e Mon Sep 17 00:00:00 2001 From: Eric Callahan Date: Sat, 15 Oct 2022 20:01:19 -0400 Subject: [PATCH] machine: increase timeout for sudo access check Signed-off-by: Eric Callahan --- moonraker/components/machine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moonraker/components/machine.py b/moonraker/components/machine.py index 65d1f33..3de407f 100644 --- a/moonraker/components/machine.py +++ b/moonraker/components/machine.py @@ -394,7 +394,7 @@ class Machine: shell_cmd: SCMDComp = self.server.lookup_component("shell_command") for cmd in cmds: try: - await self.exec_sudo_command(cmd) + await self.exec_sudo_command(cmd, timeout=10.) except shell_cmd.error: return False return True