From 336b02371df2dcce36fbe41531309c045ecbb4c1 Mon Sep 17 00:00:00 2001 From: Alvaro Neira Ayuso Date: Tue, 14 Jan 2020 17:53:43 +0100 Subject: Send OPG (opengnsys) status when a probe command is received --- src/ogRest.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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: -- cgit v1.2.3-18-g5258