summaryrefslogtreecommitdiffstats
path: root/src/virtual
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/virtual
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/virtual')
-rw-r--r--src/virtual/ogOperations.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/virtual/ogOperations.py b/src/virtual/ogOperations.py
index 1e2a682..003ec3d 100644
--- a/src/virtual/ogOperations.py
+++ b/src/virtual/ogOperations.py
@@ -240,7 +240,7 @@ class OgVirtualOperations:
self.poweroff_host()
def shellrun(self, request, ogRest):
- return
+ return (0, "")
def session(self, request, ogRest):
disk = request.getDisk()