Browse Source

sort repos so they do not change order every run

pull/216/head
Matthew Thode 4 years ago
parent
commit
311b2bb3d1
No account linked to committer's email address
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      linux/files/sources.list
  2. +1
    -1
      linux/system/repo.sls

+ 1
- 1
linux/files/sources.list View File

{%- for name, repo in default_repos.items() %}
{%- for name, repo in default_repos.items() | sort %}
# Repository {{ name }} # Repository {{ name }}
{{ repo.source }} {{ repo.source }}
{%- endfor %} {%- endfor %}

+ 1
- 1
linux/system/repo.sls View File

- clean: True - clean: True
{%- endif %} {%- endif %}


{%- for name, repo in system.repo.items() %}
{%- for name, repo in system.repo.items() | sort %}
{%- set name=repo.get('name', name) %} {%- set name=repo.get('name', name) %}
{%- if grains.os_family == 'Debian' %} {%- if grains.os_family == 'Debian' %}



Loading…
Cancel
Save