Skip to content

Commit

Permalink
Merge pull request #201 from galaxyproject/fix-empty-dicts
Browse files Browse the repository at this point in the history
Fixes #200
  • Loading branch information
cat-bro authored Jan 23, 2024
2 parents e07b036 + 7ecb423 commit 7650a92
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 7650a92

Please sign in to comment.