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:
Qian Deng 2019-04-29 15:34:12 +08:00 committed by Wang Yan
parent e07e25eeef
commit c06c3fd08d

View File

@ -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']