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:
baldarn 2024-08-23 17:31:19 +02:00 committed by GitHub
parent c1d3dad4d7
commit 656eb61a35
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

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

View File

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