Locally sort remote group information, to prevent differences in sort output. #367

Open
mark wants to merge 1 commits from mark/cdist:__user_groups-sort into master
Contributor

Our current cdist system is running Debian 11. When configuring a Debian 12 system, we ran into a problem with the __user_groups type. This type sorts groups in the explorer and other group info in the gencode-remote on the cdist server. After some searching we observed the following.

Debian 11:

echo -e "Debian-exim\ncertificate" | sort
certificate
Debian-exim

Debian 12:

echo -e "Debian-exim\ncertificate" | sort
Debian-exim
certificate

It seems sort has different policy when upgrading from coreutils 8.32 to 9.1.

To prevent such a thing happening, it might be best to sort everything cdist side and not split over client and server.

Regards,

Mark

Our current cdist system is running Debian 11. When configuring a Debian 12 system, we ran into a problem with the `__user_groups` type. This type sorts groups in the explorer and other group info in the gencode-remote on the cdist server. After some searching we observed the following. Debian 11: ``` echo -e "Debian-exim\ncertificate" | sort certificate Debian-exim ``` Debian 12: ``` echo -e "Debian-exim\ncertificate" | sort Debian-exim certificate ``` It seems sort has different policy when upgrading from coreutils 8.32 to 9.1. To prevent such a thing happening, it might be best to sort everything cdist side and not split over client and server. Regards, Mark
mark added 1 commit 2023-11-02 10:15:34 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
You can also view command line instructions.

Step 1:

From your project repository, check out a new branch and test the changes.
git checkout -b mark-__user_groups-sort master
git pull __user_groups-sort

Step 2:

Merge the changes and update on Gitea.
git checkout master
git merge --no-ff mark-__user_groups-sort
git push origin master
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: ungleich-public/cdist#367
No description provided.