From 2a9d46e052bacc8a871e17bbbd67d1701aece714 Mon Sep 17 00:00:00 2001 From: Daniel Jiang Date: Wed, 5 Dec 2018 19:49:40 -0800 Subject: [PATCH] Update no_proxy from 'portal' to 'core' in cfg migrator (#6464) Signed-off-by: Daniel Jiang --- tools/migration/cfg/migrator_1_7_0/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/migration/cfg/migrator_1_7_0/__init__.py b/tools/migration/cfg/migrator_1_7_0/__init__.py index 8a266fc99..16b890679 100644 --- a/tools/migration/cfg/migrator_1_7_0/__init__.py +++ b/tools/migration/cfg/migrator_1_7_0/__init__.py @@ -40,7 +40,7 @@ def migrate(input_cfg, output_cfg): val[k] = d.get(k,'') #append registry to no_proxy np_list = d.get('no_proxy','').split(',') - new_np_list = ['portal' if x=='ui' else x for x in np_list] + new_np_list = ['core' if x=='ui' else x for x in np_list] val['no_proxy'] = ','.join(new_np_list) tpl_path = os.path.join(os.path.dirname(__file__), 'harbor.cfg.tpl') utils.render(tpl_path, output_cfg, **val)