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
aix_filesystem.py
aix_inittab.py
aix_lvg.py
aix_lvol.py
alternatives.py
awall.py
beadm.py rewritten as list literals (#2160) (#2168) 2021-04-05 09:50:07 +02:00
capabilities.py
cronvar.py
crypttab.py
dconf.py
dpkg_divert.py
facter.py
filesystem.py
gconftool2.py
interfaces_file.py
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
launchd.py launchd - fixed validation check (#2960) (#2975) 2021-07-10 13:49:24 +02:00
lbu.py
listen_ports_facts.py
locale_gen.py
lvg.py
lvol.py lvol: honor check_mode on thinpool (#2935) (#2938) 2021-07-05 21:03:04 +02:00
make.py
mksysb.py
modprobe.py modprobe - fix task status when module cannot be loaded (#2843) (#2879) 2021-06-26 13:45:17 +02:00
nosh.py
ohai.py
open_iscsi.py
openwrt_init.py
osx_defaults.py
pam_limits.py
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
python_requirements_info.py
runit.py
sefcontext.py
selinux_permissive.py
selogin.py
seport.py
shutdown.py
solaris_zone.py
ssh_config.py Reduce stormssh searches based on host (#2568) (#2723) 2021-06-05 16:03:10 +00:00
svc.py
syspatch.py
sysrc.py
sysupgrade.py
timezone.py
ufw.py
vdo.py
xfconf.py fixed doc in xfconf (#3050) (#3055) 2021-07-23 09:34:29 +02:00
xfs_quota.py