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
more_events
Javier Sánchez Parra 2020-06-25 11:21:27 +02:00 committed by OpenGnSys Support Team
parent 93f1b35fcd
commit de129f7449
1 changed files with 4 additions and 1 deletions

View File

@ -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')