-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Alternatives subcommand is missing link if not passed explicitly #4804
Comments
Files identified in the description: If these files are incorrect, please update the |
ansibullbot
added
bug
This issue/PR relates to a bug
module
module
plugins
plugin (any type)
system
labels
Jun 8, 2022
CC @jiuka |
jiuka
added a commit
to jiuka/community.general
that referenced
this issue
Jun 8, 2022
If neigther the priority nor the subcommands where specified the module decided to update the priority with the default value anyway. This resulted in bug ansible-collections#4803 and ansible-collections#4804
resolved_by_pr #4810 |
Unfortunately that PR does not fix this issue, see #4810 (comment) |
felixfontein
added a commit
that referenced
this issue
Jun 13, 2022
* alternatives: Fix bug with priority default If neigther the priority nor the subcommands where specified the module decided to update the priority with the default value anyway. This resulted in bug #4803 and #4804 * Add changelog fragment. * Distinguish None from 0. * Address review comments. * Update plugins/modules/system/alternatives.py Co-authored-by: Pilou <pierre-louis@libregerbil.fr> * Remove unrelated issues from changelog. Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Pilou <pierre-louis@libregerbil.fr>
patchback bot
pushed a commit
that referenced
this issue
Jun 13, 2022
* alternatives: Fix bug with priority default If neigther the priority nor the subcommands where specified the module decided to update the priority with the default value anyway. This resulted in bug #4803 and #4804 * Add changelog fragment. * Distinguish None from 0. * Address review comments. * Update plugins/modules/system/alternatives.py Co-authored-by: Pilou <pierre-louis@libregerbil.fr> * Remove unrelated issues from changelog. Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Pilou <pierre-louis@libregerbil.fr> (cherry picked from commit 57e83ac)
felixfontein
pushed a commit
that referenced
this issue
Jun 13, 2022
* alternatives: Fix bug with priority default If neigther the priority nor the subcommands where specified the module decided to update the priority with the default value anyway. This resulted in bug #4803 and #4804 * Add changelog fragment. * Distinguish None from 0. * Address review comments. * Update plugins/modules/system/alternatives.py Co-authored-by: Pilou <pierre-louis@libregerbil.fr> * Remove unrelated issues from changelog. Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Pilou <pierre-louis@libregerbil.fr> (cherry picked from commit 57e83ac) Co-authored-by: Marius Rieder <marius.rieder@durchmesser.ch>
resolved_by_pr #4836 |
1 task
1 task
1 task
1 task
ghost
mentioned this issue
Nov 7, 2022
1 task
1 task
1 task
1 task
1 task
This was referenced Nov 20, 2022
Closed
Closed
Closed
Closed
Closed
Closed
This was referenced Dec 1, 2022
1 task
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
When I try to use the alternatives module from collection version 5.1.0, it seems that the new subcommands feature is not behaving correctly on Red Hat systems, when subcommands are already in place.
Please see the details below.
Issue Type
Bug Report
Component Name
alternatives
Ansible Version
Community.general Version
Configuration
OS / Environment
Target system: Red Hat Enterprise Linux release 8.6 (Ootpa)
Ansible runner: ubuntu:20.04 / Container instance in Azure
Steps to Reproduce
Have python3 installed:
alternatives --display python python - status is manual. link currently points to /usr/bin/python3 /usr/libexec/no-python - priority 404 slave unversioned-python: (null) slave unversioned-python-man: /usr/share/man/man1/unversioned-python.1.gz /usr/bin/python3 - priority 300 slave unversioned-python: /usr/bin/python3 slave unversioned-python-man: /usr/share/man/man1/python3.1.gz Current `best' version is /usr/libexec/no-python.
Expected Results
I expected it would set python3 as the default python executable and any existing subcommand will be considered accordingly.
Actual Results
Since collection version 5.1.0 the Ansible task will fail, as slave parameter are missing the slave-link argument:
Code of Conduct
The text was updated successfully, but these errors were encountered: