Skip to content

Commit

Permalink
disable galaxy config sorting
Browse files Browse the repository at this point in the history
By default, sort_keys is set to true in the to_nice_yaml function. Sorting the brand_by_host affects the branding of the subdomains, especially when the root domain is added before the subdomain brand due to the sorting.
  • Loading branch information
sanjaysrikakulam committed Aug 1, 2024
1 parent 08974b1 commit 5a2b6e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/galaxy.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@

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

0 comments on commit 5a2b6e5

Please sign in to comment.