1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/plugins/modules/system
patchback[bot] d9c12d1d53
Support older version of psutil (RHEL7 and RHEL6) (#2808) (#3188)
* Support older version of psutil (RHEL7 and RHEL6)

The psutil python module is a true mess, they changed the API twice. The function arguments, as well as the objects that are returned.
The documentation does not make it clear which version supports what so the safest implementation is this waterfall approach.

A better approach would be to inspect the returned information, rather than trust a version, but that would not be any more efficient.
In the end it is better to have something that at least works out-of-the-box on all platforms than something that requires custom updates to system packages before it works as expected. Especially for something as basic as `pids`.

* A little bit more concise

* Apply suggestions from code review

* Add changelog fragment.

Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit b5d6457611)

Co-authored-by: Dag Wieers <dag@wieers.com>
2021-08-10 08:08:46 +02:00
..
aix_devices.py Tidy up validate-modules:doc-required-mismatch (#1415) 2020-11-28 14:06:28 +01:00
aix_filesystem.py Enabling validation-modules for system modules (#1212) 2020-11-04 09:02:50 +01:00
aix_inittab.py Enabling validation-modules for system modules (#1212) 2020-11-04 09:02:50 +01:00
aix_lvg.py Enabling validation-modules for system modules (#1212) 2020-11-04 09:02:50 +01:00
aix_lvol.py Enabling validation-modules for system modules (#1212) 2020-11-04 09:02:50 +01:00
alternatives.py Tidy up all pylint:blacklisted-name ignore lines (#1819) (#1839) 2021-02-16 08:46:20 +01:00
awall.py Enabling validation-modules for system modules (#1212) 2020-11-04 09:02:50 +01:00
beadm.py rewritten as list literals (#2160) (#2168) 2021-04-05 09:50:07 +02:00
capabilities.py [capabilities] fix for a newer versions of libcap (#1061) 2020-10-16 21:03:54 +02:00
cronvar.py Tidy up all pylint:blacklisted-name ignore lines (#1819) (#1839) 2021-02-16 08:46:20 +01:00
crypttab.py modules: fix examples to use FQCN (#644) 2020-07-13 21:50:31 +02:00
dconf.py Mark non-secret leaking module options with no_log=False (#2001) (#2005) 2021-03-12 09:17:05 +01:00
dpkg_divert.py Add version_added for all new features (#214) 2020-06-13 15:01:19 +02:00
facter.py Added Arguments for Facter module (#768) 2020-11-23 18:59:09 +01:00
filesystem.py Tidy up all pylint:blacklisted-name ignore lines (#1819) (#1839) 2021-02-16 08:46:20 +01:00
gconftool2.py Mark non-secret leaking module options with no_log=False (#2001) (#2005) 2021-03-12 09:17:05 +01:00
interfaces_file.py Tidy up all pylint:blacklisted-name ignore lines (#1819) (#1839) 2021-02-16 08:46:20 +01:00
iptables_state.py fix a regression in initialization_from_null_state() (iptables-nft > 1.8.2) (#2604) (#2645) 2021-05-27 07:16:34 +00:00
java_cert.py java_cert: import certificate+key bundle from pkcs12 (#3080) (#3085) 2021-07-26 11:58:11 +02:00
java_keystore.py java_keystore: improve error handling and returned results (#2183) (#2227) 2021-04-12 22:13:36 +02:00
kernel_blacklist.py Enabling validation-modules for system modules (#1212) 2020-11-04 09:02:50 +01:00
launchd.py launchd - fixed validation check (#2960) (#2975) 2021-07-10 13:49:24 +02:00
lbu.py Enabling validation-modules for system modules (#1212) 2020-11-04 09:02:50 +01:00
listen_ports_facts.py modules: fix examples to use FQCN for builtin modules (#648) 2020-07-14 18:28:08 +03:00
locale_gen.py Enabling validation-modules for system modules (#1212) 2020-11-04 09:02:50 +01:00
lvg.py Tidy up all pylint:blacklisted-name ignore lines (#1819) (#1839) 2021-02-16 08:46:20 +01:00
lvol.py lvol: honor check_mode on thinpool (#2935) (#2938) 2021-07-05 21:03:04 +02:00
make.py added jobs parameter to make module (#1550) 2021-01-16 22:12:45 +01:00
mksysb.py Enabling validation-modules for system modules (#1212) 2020-11-04 09:02:50 +01:00
modprobe.py modprobe - fix task status when module cannot be loaded (#2843) (#2879) 2021-06-26 13:45:17 +02:00
nosh.py Enabling validation-modules for system modules (#1212) 2020-11-04 09:02:50 +01:00
ohai.py Fix M(). (#591) 2020-06-29 14:59:15 +02:00
open_iscsi.py Fix boolean defaults. (#1343) 2020-11-23 11:14:43 +00:00
openwrt_init.py Enabling validation-modules for system modules (#1212) 2020-11-04 09:02:50 +01:00
osx_defaults.py Mark non-secret leaking module options with no_log=False (#2001) (#2005) 2021-03-12 09:17:05 +01:00
pam_limits.py pam_limits: adds check mode and diff mode (#1575) 2021-01-03 13:32:54 +01:00
pamd.py pamd - fixed single line issue (#2989) (#3012) 2021-07-14 13:22:01 +02:00
parted.py Fix repeated word in description of fs_type (#2717) (#2718) 2021-06-04 21:12:37 +02:00
pids.py Support older version of psutil (RHEL7 and RHEL6) (#2808) (#3188) 2021-08-10 08:08:46 +02:00
puppet.py puppet - replace stdout with console in logdest option (#2407) (#2420) 2021-05-03 07:59:30 +02:00
python_requirements_facts.py Initial commit 2020-03-09 09:11:07 +00:00
python_requirements_info.py Enabling validation-modules for system modules (#1212) 2020-11-04 09:02:50 +01:00
runit.py Revert "Revert new feature so that we can make a bugfix release. Will re-revert this afterwards." 2021-02-17 22:59:37 +01:00
sefcontext.py Enabling validation-modules for system modules (#1212) 2020-11-04 09:02:50 +01:00
selinux_permissive.py modules: fix examples to use FQCN (#644) 2020-07-13 21:50:31 +02:00
selogin.py Enabling validation-modules for system modules (#1212) 2020-11-04 09:02:50 +01:00
seport.py Enabling validation-modules for system modules (#1212) 2020-11-04 09:02:50 +01:00
shutdown.py New module: shutdown (#700) 2020-08-11 17:54:41 +02:00
solaris_zone.py Enabling validation-modules for system modules (#1212) 2020-11-04 09:02:50 +01:00
ssh_config.py Reduce stormssh searches based on host (#2568) (#2723) 2021-06-05 16:03:10 +00:00
svc.py Fix boolean defaults. (#1343) 2020-11-23 11:14:43 +00:00
syspatch.py Enabling validation-modules for system modules (#1212) 2020-11-04 09:02:50 +01:00
sysrc.py New sysrc module for managing rc files on FreeBSD (#1460) 2021-01-16 14:14:23 +01:00
sysupgrade.py sysupgrade: new module (#341) 2020-08-18 09:10:41 +02:00
timezone.py Tidy up all pylint:blacklisted-name ignore lines (#1819) (#1839) 2021-02-16 08:46:20 +01:00
ufw.py Fix boolean defaults. (#1343) 2020-11-23 11:14:43 +00:00
vdo.py vdo: add force option (#2110) (#2123) 2021-03-27 15:41:58 +01:00
xfconf.py fixed doc in xfconf (#3050) (#3055) 2021-07-23 09:34:29 +02:00
xfs_quota.py bugfix: xfs_quota feedback on projects not initialized has changed (#1596) (#1923) 2021-02-27 09:57:58 +01:00