summaryrefslogtreecommitdiffstats
path: root/src/ogRest.py
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2020-06-25 11:21:27 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2020-06-26 14:39:21 +0200
commitde129f7449b268354a84797e80a3de5004d96587 (patch)
tree3e6458aa2bf61b80fe70af274b5a7b47b65be5b0 /src/ogRest.py
parent93f1b35fcddc432dc65dcd2a3eecc35de3230dae (diff)
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
Diffstat (limited to 'src/ogRest.py')
-rw-r--r--src/ogRest.py5
1 files changed, 4 insertions, 1 deletions
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')