summaryrefslogtreecommitdiffstats
path: root/src/windows/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/windows/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/windows/ogOperations.py')
-rw-r--r--src/windows/ogOperations.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/windows/ogOperations.py b/src/windows/ogOperations.py
index 70d3c5b..bf35bff 100644
--- a/src/windows/ogOperations.py
+++ b/src/windows/ogOperations.py
@@ -93,7 +93,7 @@ class OgWindowsOperations:
if error.stdout:
return error.stdout
return "{Non zero exit code and empty output}"
- return result.stdout
+ return (result.returncode, result.stdout)
def session(self, request, ogRest):
raise NotImplementedError