Commit Graph

8 Commits (88eff11c048f88ed9a49bf1f38a26493083d35a2)

Author SHA1 Message Date
Brian Coca edf519a0c2 moar quotes 10 years ago
Greg DeKoenigsberg 34d93e0488 Adding author's github id 10 years ago
Matt Martz e568032bc3 Fix up modules that have python24 syntax error 10 years ago
David Wittman 34e7d9c938 Fix multiple issues with alternatives module
- Changes are no longer erroneously reported on RHEL (#12)
 - Adding new link groups on Debian works again.
   - This was broken in a previous commit by assuming the OS was RHEL
     if `update-alternatives --query <name>` had a return code of 2
 - Prefer `--display` over `--query` for determining available
   alternatives
   - --display is more distro-agnostic and simplifies the code
 - Fix missing `msg=` in `fail_json` call when `link` is missing
 - Document that `link` is required on RHEL-based distros

Tested on Ubuntu 12.04+ and CentOS 6/7
10 years ago
Brian Coca c7e3aee0f0 now properly checks that link is suplied before trying to use it
should fix #46
10 years ago
Aurélien Bompard 6b5aa62854 Module alternatives: support RedHat-based OSes
RedHat-based OSes have a version of update-alternatives which comes from
the chkconfig package and does not support the --query parameter. Work
around that.
10 years ago
Aurélien Bompard b645dd330c Module alternatives: support check mode 10 years ago
Michael DeHaan b1e789968b File extensions! 10 years ago