Skip to content

Commit

Permalink
Merge pull request #157 from Slugger70/fix_gal_templates
Browse files Browse the repository at this point in the history
Added gravity to section check for galaxy.yml
  • Loading branch information
hexylena authored Jun 6, 2022
2 parents c15de9f + 4f323ec commit d114857
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion templates/galaxy.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
{% set _gravity_config = galaxy_config.gravity | default(galaxy_gravity_config_default) -%}
{{ {'gravity': _gravity_config} | to_nice_yaml(indent=4) }}


{% set _uwsgi_config = galaxy_config.uwsgi | default(galaxy_uwsgi_config_default) -%}
{% if galaxy_uwsgi_yaml_parser == 'libyaml' %}
{{ {'uwsgi': _uwsgi_config} | to_nice_yaml(indent=4) }}
Expand All @@ -20,7 +21,7 @@
{% endif %}

{#- add any other defined sections -#}
{% for section, val in galaxy_config | dictsort if section not in ('uwsgi', galaxy_app_config_section) %}
{% 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 %}
{{ {galaxy_app_config_section: galaxy_config_merged[galaxy_app_config_section]} | to_nice_yaml(indent=4) }}

0 comments on commit d114857

Please sign in to comment.