Merge pull request #59 from deankerr/fix/ssh-terminal-check
fix: add SSH backend to terminal requirements check
This commit is contained in:
commit
21cf339a85
1 changed files with 4 additions and 0 deletions
|
|
@ -1068,6 +1068,10 @@ def check_terminal_requirements() -> bool:
|
||||||
result = subprocess.run([executable, "--version"], capture_output=True, timeout=5)
|
result = subprocess.run([executable, "--version"], capture_output=True, timeout=5)
|
||||||
return result.returncode == 0
|
return result.returncode == 0
|
||||||
return False
|
return False
|
||||||
|
elif env_type == "ssh":
|
||||||
|
from tools.environments.ssh import SSHEnvironment
|
||||||
|
# Check that host and user are configured
|
||||||
|
return bool(config.get("ssh_host")) and bool(config.get("ssh_user"))
|
||||||
elif env_type == "modal":
|
elif env_type == "modal":
|
||||||
from minisweagent.environments.extra.swerex_modal import SwerexModalEnvironment
|
from minisweagent.environments.extra.swerex_modal import SwerexModalEnvironment
|
||||||
# Check for modal token
|
# Check for modal token
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue