#718: Ampliar a 1 minuto el timeout para obtener datos de red en la activación del OGAgent, para uso en redes con servidor DHCP lento.
git-svn-id: https://opengnsys.es/svn/branches/version1.1@5475 a21b9725-9963-47de-94b9-378ad31fedc9remotes/github/oglive
parent
97a3b4e482
commit
e37d561c50
|
@ -82,8 +82,8 @@ class OpenGnSysWorker(ServerWorker):
|
||||||
self.cmd = None
|
self.cmd = None
|
||||||
# Ensure cfg has required configuration variables or an exception will be thrown
|
# Ensure cfg has required configuration variables or an exception will be thrown
|
||||||
self.REST = REST(self.service.config.get('opengnsys', 'remote'))
|
self.REST = REST(self.service.config.get('opengnsys', 'remote'))
|
||||||
# Get network interfaces until they are active or timeout (30 sec)
|
# Get network interfaces until they are active or timeout (1 minute)
|
||||||
for t in range(0, 30):
|
for t in range(0, 60):
|
||||||
try:
|
try:
|
||||||
self.interface = list(operations.getNetworkInfo())[0] # Get first network interface
|
self.interface = list(operations.getNetworkInfo())[0] # Get first network interface
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|
Loading…
Reference in New Issue