mirror of
https://github.com/librenms/librenms.git
synced 2024-09-21 10:28:13 +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:
parent
fc921a143c
commit
b3690ea11e
@ -101,7 +101,7 @@ elif ':' in config['db_host']:
|
||||
db_port = int(config['db_host'].rsplit(':')[1])
|
||||
elif 'db_port' in config:
|
||||
db_server = config['db_host']
|
||||
db_port = config['db_port']
|
||||
db_port = int(config['db_port'])
|
||||
else:
|
||||
db_server = config['db_host']
|
||||
db_port = 0
|
||||
|
Loading…
Reference in New Issue
Block a user