summaryrefslogtreecommitdiffstats
path: root/src/live/ogOperations.py
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2024-06-21 14:02:54 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2024-06-21 14:47:30 +0200
commit19cd1b9a783646522bcbe46a4e4f9580c0a1d512 (patch)
tree2e82eee63ef6d8e973caeed064999370e89be465 /src/live/ogOperations.py
parent399a5dceb8730314f651973a0e2ac13a7fab3efa (diff)
rest: add retcode field to POST /shell/run
provide return code as result to ogserver. Update virtual mode driver to return dummy value, although this command is unimplemented, this seems to be broken due to possible TypeError when accessing result from caller.
Diffstat (limited to 'src/live/ogOperations.py')
-rw-r--r--src/live/ogOperations.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/live/ogOperations.py b/src/live/ogOperations.py
index 733beae..cadd0af 100644
--- a/src/live/ogOperations.py
+++ b/src/live/ogOperations.py
@@ -297,7 +297,7 @@ class OgLiveOperations:
self.refresh(ogRest)
- return output.decode('utf-8')
+ return (ogRest.proc.returncode, output.decode('utf-8'))
def session(self, request, ogRest):
disk = request.getDisk()