summaryrefslogtreecommitdiffstats
path: root/src/ogRest.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/ogRest.py')
-rw-r--r--src/ogRest.py24
1 files changed, 1 insertions, 23 deletions
diff --git a/src/ogRest.py b/src/ogRest.py
index cab1c06..7511c76 100644
--- a/src/ogRest.py
+++ b/src/ogRest.py
@@ -309,8 +309,7 @@ class ogRest():
if (not "stop" in URI and
not "reboot" in URI and
- not "poweroff" in URI and
- not "probe" in URI):
+ not "poweroff" in URI):
if self.state == ThreadState.BUSY:
logging.error('Request has been received while ogClient is busy')
response = restResponse(ogResponses.SERVICE_UNAVAILABLE, seq=client.seq)
@@ -336,8 +335,6 @@ class ogRest():
elif ("POST" in method):
if ("poweroff" in URI):
self.process_poweroff(client)
- elif "probe" in URI:
- self.process_probe(client)
elif ("reboot" in URI):
self.process_reboot(client)
elif ("shell/run" in URI):
@@ -404,25 +401,6 @@ class ogRest():
threading.Thread(target=ogThread.poweroff, args=(self,)).start()
- def process_probe(self, client):
- try:
- status = self.operations.probe(self)
- except:
- response = restResponse(ogResponses.INTERNAL_ERR, seq=client.seq)
- client.send(response.get())
- return
-
- json_body = jsonBody()
- for k, v in status.items():
- json_body.add_element(k, v)
-
- if self.state != ThreadState.BUSY:
- response = restResponse(ogResponses.OK, json_body, seq=client.seq)
- else:
- response = restResponse(ogResponses.IN_PROGRESS, json_body, seq=client.seq)
-
- client.send(response.get())
-
def process_shellrun(self, client, request):
threading.Thread(target=ogThread.shellrun, args=(client, request, self,)).start()