Skip to content

Commit 3226ee9

Browse files
authored
Merge pull request #226 from galaxyproject/fix-theme-ordering
Maintain theme dict ordering on write
2 parents ec8def0 + 63db61e commit 3226ee9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tasks/themes.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@
1818

1919
- name: Write base themes config
2020
ansible.builtin.copy:
21-
content: "{{ galaxy_themes | to_yaml }}"
21+
content: "{{ galaxy_themes | to_yaml(sort_keys=False) }}"
2222
dest: "{{ galaxy_config_merged.galaxy.themes_config_file | default((galaxy_config_dir, 'themes_conf.yml') | path_join) }}"
2323
mode: "0644"
2424

2525
- name: Write subdomain themes configs
2626
ansible.builtin.copy:
2727
content: |
28-
{{ item.theme | to_yaml }}
29-
{{ galaxy_themes | to_yaml }}
28+
{{ item.theme | to_yaml(sort_keys=False) }}
29+
{{ galaxy_themes | to_yaml(sort_keys=False) }}
3030
dest: "{{ galaxy_config_dir }}/themes_conf-{{ item.name }}.yml"
3131
mode: "0644"
3232
when: item.theme is defined

0 commit comments

Comments
 (0)