machine: increase timeout for sudo access check
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
05ca71f5a8
commit
7e35e54a71
|
@ -394,7 +394,7 @@ class Machine:
|
||||||
shell_cmd: SCMDComp = self.server.lookup_component("shell_command")
|
shell_cmd: SCMDComp = self.server.lookup_component("shell_command")
|
||||||
for cmd in cmds:
|
for cmd in cmds:
|
||||||
try:
|
try:
|
||||||
await self.exec_sudo_command(cmd)
|
await self.exec_sudo_command(cmd, timeout=10.)
|
||||||
except shell_cmd.error:
|
except shell_cmd.error:
|
||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Reference in New Issue