summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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')