summaryrefslogtreecommitdiffstats
path: root/src/ogRest.py
diff options
context:
space:
mode:
authorAlvaro Neira Ayuso <aneira@soleta.eu>2020-01-14 17:53:43 +0100
committerAlvaro Neira Ayuso <alvaroneay@gmail.com>2020-01-19 19:50:44 +0100
commit336b02371df2dcce36fbe41531309c045ecbb4c1 (patch)
treebee8a4dbb5d7b036e5be13505bcb3e5a76a1a307 /src/ogRest.py
parent38b57c4ae43e062049d8a2a1a33f9a790a18b327 (diff)
Send OPG (opengnsys) status when a probe command is received
Diffstat (limited to 'src/ogRest.py')
-rw-r--r--src/ogRest.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ogRest.py b/src/ogRest.py
index cf7a4ee..c18b9f3 100644
--- a/src/ogRest.py
+++ b/src/ogRest.py
@@ -178,7 +178,9 @@ class ogRest():
threading.Thread(target=ogThread.poweroff).start()
def process_probe(self, client):
- client.send(restResponse.getResponse(ogResponses.OK))
+ jsonResp = jsonResponse()
+ jsonResp.addElement('status', 'OPG')
+ client.send(restResponse.getResponse(ogResponses.OK, jsonResp))
def process_shellrun(self, client, httpparser):
if httpparser.getCMD() == None: