Update no_proxy from 'portal' to 'core' in cfg migrator (#6464)

Signed-off-by: Daniel Jiang <jiangd@vmware.com>
This commit is contained in:
Daniel Jiang 2018-12-05 19:49:40 -08:00 committed by Yan
parent 29d5b5da72
commit 2a9d46e052
1 changed files with 1 additions and 1 deletions

View File

@ -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)