machine: increase timeout for sudo access check

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan 2022-10-15 20:01:19 -04:00
parent 05ca71f5a8
commit 7e35e54a71
No known key found for this signature in database
GPG Key ID: 5A1EB336DFB4C71B
1 changed files with 1 additions and 1 deletions

View File

@ -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