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

pull/9/head
Natalia Serrano 2024-09-19 14:23:47 +02:00 committed by Natalia Serrano
parent 0a6edd8cfe
commit 22f83d8dea
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