mirror of
https://github.com/goharbor/harbor
synced 2024-09-20 11:45:38 +00:00
Apply suggestions from code review
Co-authored-by: Jose D. Gomez R. <1josegomezr@gmail.com> Signed-off-by: baldarn <2814802+baldarn@users.noreply.github.com>
This commit is contained in:
parent
c1d3dad4d7
commit
656eb61a35
|
@ -348,7 +348,7 @@ def parse_yaml_config(config_file_path, with_trivy):
|
|||
config_dict['core'] = Core(core_config or {})
|
||||
|
||||
# look and feel configs
|
||||
config_dict['look_and_feel'] = configs.get('look_and_feel') or {}
|
||||
config_dict['look_and_feel'] = configs.get('look_and_feel', {})
|
||||
|
||||
return config_dict
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ def prepare_portal(config_dict):
|
|||
)
|
||||
|
||||
# Render Portal setting config
|
||||
if config_dict['look_and_feel']:
|
||||
if 'look_and_feel' in config_dict:
|
||||
render_jinja(
|
||||
str(portal_conf_setting_template_path),
|
||||
portal_conf_setting,
|
||||
|
|
Loading…
Reference in New Issue
Block a user