summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/linux/ogOperations.py2
-rw-r--r--src/ogRest.py2
-rw-r--r--src/virtual/ogOperations.py5
3 files changed, 4 insertions, 5 deletions
diff --git a/src/linux/ogOperations.py b/src/linux/ogOperations.py
index ab58cd7..e194468 100644
--- a/src/linux/ogOperations.py
+++ b/src/linux/ogOperations.py
@@ -68,7 +68,7 @@ class OgLinuxOperations:
else:
subprocess.call(['/sbin/reboot'])
- def execCMD(self, request, ogRest):
+ def shellrun(self, request, ogRest)
cmd = request.getrun()
cmds = cmd.split(";|\n\r")
diff --git a/src/ogRest.py b/src/ogRest.py
index 14b9d33..3f76053 100644
--- a/src/ogRest.py
+++ b/src/ogRest.py
@@ -79,7 +79,7 @@ class ogThread():
return
try:
- shellout = ogRest.operations.execCMD(request, ogRest)
+ shellout = ogRest.operations.shellrun(request, ogRest)
except ValueError as err:
response = restResponse(ogResponses.INTERNAL_ERR)
client.send(response.get())
diff --git a/src/virtual/ogOperations.py b/src/virtual/ogOperations.py
index 02f50da..6ff9e0b 100644
--- a/src/virtual/ogOperations.py
+++ b/src/virtual/ogOperations.py
@@ -217,9 +217,8 @@ class OgVirtualOperations:
pass
return installed_os
- def execCMD(self, request, ogRest):
- # TODO Implement.
- raise NotImplementedError
+ def shellrun(self, request, ogRest):
+ return
def session(self, request, ogRest):
disk = request.getDisk()