From de129f7449b268354a84797e80a3de5004d96587 Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Thu, 25 Jun 2020 11:21:27 +0200 Subject: Add Virtual status Since version 1.2.0, OpenGnsys supports ogVDI hypervisor OS. This commit a new status which indicates that clients are running ogVDI --- src/ogRest.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ogRest.py b/src/ogRest.py index eb3a848..1bc82a1 100644 --- a/src/ogRest.py +++ b/src/ogRest.py @@ -364,7 +364,10 @@ class ogRest(): json_body = jsonBody() if self.state != ThreadState.BUSY: - json_body.add_element('status', 'OPG') + if self.mode == 'live': + json_body.add_element('status', 'OPG') + elif self.mode == 'virtual': + json_body.add_element('status', 'VDI') response = restResponse(ogResponses.OK, json_body) else: json_body.add_element('status', 'BSY') -- cgit v1.2.3-18-g5258