#2706 - Small change to execute method following feedback

This commit is contained in:
Charlie Crane
2024-07-29 17:10:13 +01:00
parent f78cb24150
commit e492f19a43

View File

@@ -306,14 +306,9 @@ class Terminal(Service):
return True return True
def execute(self, command: List[Any]) -> bool: def execute(self, command: List[Any]) -> RequestResponse:
"""Execute a passed ssh command via the request manager.""" """Execute a passed ssh command via the request manager."""
# TODO: Expand as necessary, as new functionalilty is needed. return self.parent.apply_request(command)
if command[0] == "install":
self.parent.software_manager.software.install(command[1])
return True
else:
return False
def _disconnect(self, dest_ip_address: IPv4Address) -> bool: def _disconnect(self, dest_ip_address: IPv4Address) -> bool:
"""Disconnect from the remote.""" """Disconnect from the remote."""