Skip to content

Commit

Permalink
fix empty dicts
Browse files Browse the repository at this point in the history
  • Loading branch information
mira-miracoli authored Jan 16, 2024
1 parent e07b036 commit 7ecb423
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions templates/galaxy.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,7 @@
{% for section, val in galaxy_config | dictsort if section not in ('uwsgi', 'gravity', galaxy_app_config_section) %}
{{ {section: val} | to_nice_yaml(indent=4) }}
{% endfor %}
{% for key, value in galaxy_config_merged[galaxy_app_config_section] | dictsort %}
{% set _dummy=galaxy_config_merged[galaxy_app_config_section].pop(key) if value is mapping and value|length == 0 %}
{% endfor %}
{{ {galaxy_app_config_section: galaxy_config_merged[galaxy_app_config_section]} | to_nice_yaml(indent=4) }}

0 comments on commit 7ecb423

Please sign in to comment.