mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-22 16:48:30 +01:00
Update no_proxy from 'portal' to 'core' in cfg migrator (#6464)
Signed-off-by: Daniel Jiang <jiangd@vmware.com>
This commit is contained in:
parent
29d5b5da72
commit
2a9d46e052
@ -40,7 +40,7 @@ def migrate(input_cfg, output_cfg):
|
|||||||
val[k] = d.get(k,'')
|
val[k] = d.get(k,'')
|
||||||
#append registry to no_proxy
|
#append registry to no_proxy
|
||||||
np_list = d.get('no_proxy','').split(',')
|
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)
|
val['no_proxy'] = ','.join(new_np_list)
|
||||||
tpl_path = os.path.join(os.path.dirname(__file__), 'harbor.cfg.tpl')
|
tpl_path = os.path.join(os.path.dirname(__file__), 'harbor.cfg.tpl')
|
||||||
utils.render(tpl_path, output_cfg, **val)
|
utils.render(tpl_path, output_cfg, **val)
|
||||||
|
Loading…
Reference in New Issue
Block a user