mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Read the db_port as integer (#11392)
db_port must be read as integer. I have missed to add this in the pull 11284
This commit is contained in:
@@ -101,7 +101,7 @@ elif ':' in config['db_host']:
|
|||||||
db_port = int(config['db_host'].rsplit(':')[1])
|
db_port = int(config['db_host'].rsplit(':')[1])
|
||||||
elif 'db_port' in config:
|
elif 'db_port' in config:
|
||||||
db_server = config['db_host']
|
db_server = config['db_host']
|
||||||
db_port = config['db_port']
|
db_port = int(config['db_port'])
|
||||||
else:
|
else:
|
||||||
db_server = config['db_host']
|
db_server = config['db_host']
|
||||||
db_port = 0
|
db_port = 0
|
||||||
|
Reference in New Issue
Block a user