Commit graph

12 commits

Author SHA1 Message Date
Michael Scherer
8c53e654f7 Add proper type to path and link
Since both of them are path, it should be checked using the
proper type.
2016-03-20 00:41:14 +01:00
Greg DeKoenigsberg
004dedba8a Changes to author formatting, remove emails 2015-06-16 14:32:39 -04:00
Christian Thiemann
b527380c6a Fix alternatives module in non-English locale
The alternatives module parses the output of update-alternatives, but the expected English phrases may not show up if the system locale is not English. Setting LC_ALL=C when invoking update-alternatives fixes this problem.
2015-06-16 11:33:11 -04:00
Brian Coca
5187c7fcd7 removed executable bit 2015-05-21 07:03:49 -04:00
Brian Coca
edf519a0c2 moar quotes 2015-05-14 09:37:00 -04:00
Greg DeKoenigsberg
34d93e0488 Adding author's github id 2015-05-14 00:43:58 -04:00
Matt Martz
e568032bc3 Fix up modules that have python24 syntax error 2015-05-11 09:51:48 -05:00
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
2015-03-13 23:16:44 -05:00
Brian Coca
c7e3aee0f0 now properly checks that link is suplied before trying to use it
should fix #46
2015-02-11 17:21:35 -05:00
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.
2014-09-30 00:38:56 +02:00
Aurélien Bompard
b645dd330c Module alternatives: support check mode 2014-09-30 00:38:54 +02:00
Michael DeHaan
b1e789968b File extensions! 2014-09-26 10:40:16 -04:00
Renamed from system/alternatives (Browse further)