From e492f19a437b7aa119b524ac556ee91b99e1d900 Mon Sep 17 00:00:00 2001 From: Charlie Crane Date: Mon, 29 Jul 2024 17:10:13 +0100 Subject: [PATCH] #2706 - Small change to execute method following feedback --- .../simulator/system/services/terminal/terminal.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/primaite/simulator/system/services/terminal/terminal.py b/src/primaite/simulator/system/services/terminal/terminal.py index 3caf57be..ca0d7c1f 100644 --- a/src/primaite/simulator/system/services/terminal/terminal.py +++ b/src/primaite/simulator/system/services/terminal/terminal.py @@ -306,14 +306,9 @@ class Terminal(Service): 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.""" - # TODO: Expand as necessary, as new functionalilty is needed. - if command[0] == "install": - self.parent.software_manager.software.install(command[1]) - return True - else: - return False + return self.parent.apply_request(command) def _disconnect(self, dest_ip_address: IPv4Address) -> bool: """Disconnect from the remote."""