refs #708 ogLive agent: do not activate within an operating system

unification2
Natalia Serrano 2024-09-19 14:23:47 +02:00
parent dd3703ce63
commit b7b7351783
1 changed files with 5 additions and 0 deletions

View File

@ -455,6 +455,11 @@ class ogAdmClientWorker (ServerWorker):
"""
Sends OGAgent activation notification to OpenGnsys server
"""
if not os.path.exists ('/scripts/oginit'):
## no estamos en oglive, este modulo no debe cargarse
## esta lógica la saco de src/opengnsys/linux/operations.py, donde hay un if similar
raise Exception ('Refusing to load within an operating system')
self.pathinterface = None
self.IPlocal = None ## Ip del ordenador
self.idordenador = None ## Identificador del ordenador