mirror of
https://github.com/librenms/librenms.git
synced 2024-09-21 18:38:25 +00:00
Casting REDIS_TIMEOUT to integer Co-authored-by: Oahz Egroeg <8146946+EgroegOahz@users.noreply.github.com>
This commit is contained in:
parent
17f5a3f232
commit
50b99a4f1a
@ -138,7 +138,7 @@ class ServiceConfig:
|
||||
self.redis_sentinel_service = os.getenv('REDIS_SENTINEL_SERVICE',
|
||||
config.get('redis_sentinel_service',
|
||||
ServiceConfig.redis_sentinel_service))
|
||||
self.redis_timeout = os.getenv('REDIS_TIMEOUT', self.alerting.frequency if self.alerting.frequency != 0 else self.redis_timeout)
|
||||
self.redis_timeout = int(os.getenv('REDIS_TIMEOUT', self.alerting.frequency if self.alerting.frequency != 0 else self.redis_timeout))
|
||||
|
||||
self.db_host = os.getenv('DB_HOST', config.get('db_host', ServiceConfig.db_host))
|
||||
self.db_name = os.getenv('DB_DATABASE', config.get('db_name', ServiceConfig.db_name))
|
||||
|
Loading…
Reference in New Issue
Block a user