mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-22 18:25:56 +01:00
Fix cannot load external configs of database (#7591)
Fix that when loading external db config wrong varible used Signed-off-by: Qian Deng <dengq@vmware.com>
This commit is contained in:
parent
e07e25eeef
commit
c06c3fd08d
@ -152,7 +152,7 @@ def parse_yaml_config(config_file_path):
|
||||
config_dict['db_password'] = external_db_configs.get('password') or ''
|
||||
config_dict['db_host'] = external_db_configs['host']
|
||||
config_dict['db_port'] = external_db_configs['port']
|
||||
config_dict['db_user'] = db_configs['username']
|
||||
config_dict['db_user'] = external_db_configs['username']
|
||||
if external_db_configs.get('ssl_mode'):
|
||||
config_dict['db_ssl_mode'] = external_db_configs['ssl_mode']
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user