diff options
author | Alvaro Neira Ayuso <aneira@soleta.eu> | 2020-01-02 20:47:17 +0100 |
---|---|---|
committer | Alvaro Neira Ayuso <alvaroneay@gmail.com> | 2020-01-19 19:50:44 +0100 |
commit | 9fd8f2dbd0bf1edd05eaf94d6a067f5709cfb573 (patch) | |
tree | f4e9f19648d3cee00f7b4f999697d1ba37e77f03 /src | |
parent | 261a5edf7c26fcfada6ba1560febe316caf35e9f (diff) |
Add schedule command
No action executed. This command only return a 200 OK message.
Diffstat (limited to 'src')
-rw-r--r-- | src/ogRest.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ogRest.py b/src/ogRest.py index 0e05ad8..ddedf16 100644 --- a/src/ogRest.py +++ b/src/ogRest.py @@ -88,6 +88,8 @@ class ogRest(): self.process_shellout(client) elif ("hardware" in URI): self.process_hardware(client) + elif ("run/schedule" in URI): + self.process_schedule(client) else: client.send(self.getResponse(ogResponses.BAD_REQUEST)) elif ("POST" in op): @@ -157,3 +159,6 @@ class ogRest(): path = '/tmp/Chrd-' + client.ip threading.Thread(target=ogThread.prochardware, args=(self.msgqueue, path,)).start() client.send(self.getResponse(ogResponses.OK)) + + def process_schedule(self, client): + client.send(self.getResponse(ogResponses.OK)) |