mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-17 10:10:25 +00:00
priority sort fedora-release
During __sort_release_files release files are sorted. Fedora is currently identified as redhat-release. This PR adds fedora-release to the max_prio list to priorize this higher than redhat-release.
This commit is contained in:
parent
ae8df09e13
commit
4dc85ca98d
1 changed files with 1 additions and 1 deletions
|
@ -920,7 +920,7 @@ __sort_release_files() {
|
|||
done
|
||||
|
||||
# Now let's sort by know files importance, max important goes last in the max_prio list
|
||||
max_prio="redhat-release centos-release oracle-release"
|
||||
max_prio="redhat-release centos-release oracle-release fedora-release"
|
||||
for entry in $max_prio; do
|
||||
if [ "$(echo "${primary_release_files}" | grep "$entry")" != "" ]; then
|
||||
primary_release_files=$(echo "${primary_release_files}" | sed -e "s:\(.*\)\($entry\)\(.*\):\2 \1 \3:g")
|
||||
|
|
Loading…
Add table
Reference in a new issue