#750: Simple REST route to get the list of running commands.

remotes/github/oglive^2^2
Ramón M. Gómez 2018-07-03 17:55:25 +02:00
parent 3c5a6993d7
commit 1cfe9dc9db
2 changed files with 3 additions and 2 deletions

View File

@ -113,6 +113,7 @@ class OpenGnSysWorker(ServerWorker):
REST = None # REST object
logged_in = False # User session flag
locked = {} # Locked partitions
commands = [] # Running commands
random = None # Random string for secure connections
length = 32 # Random string length
@ -354,7 +355,7 @@ class OpenGnSysWorker(ServerWorker):
serialno = '' # Serial number
storage = [] # Storage configuration
warnings = 0 # Number of warnings
logger.debug('Recieved getconfig operation')
logger.debug('Received getconfig operation')
self.checkSecret(server)
# Processing data
for row in operations.get_configuration().split(';'):

View File

@ -49,7 +49,7 @@ else:
if os.path.exists('/scripts/oginit'):
from .oglive.operations import * # @UnusedWildImport
os_type = 'ogLive'
os_version = get_oglive_version()
os_version = get_oglive_version().replace(',', '')
else:
from .linux.operations import * # @UnusedWildImport
os_type = 'Linux'