community.general/plugins
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
..
action utf8 marker batch1 (#3127) (#3129) 2021-08-01 15:46:43 +02:00
become [PR #2633/07085785 backport][stable-2] Dynamically add meta/runtime.yml redirects for integration tests to correctly report coverage (#2854) 2021-06-22 09:13:40 +02:00
cache utf8 marker batch1 (#3127) (#3129) 2021-08-01 15:46:43 +02:00
callback utf8 marker batch1 (#3127) (#3129) 2021-08-01 15:46:43 +02:00
connection utf8 marker batch1 (#3127) (#3129) 2021-08-01 15:46:43 +02:00
doc_fragments utf8 marker batch1 (#3127) (#3129) 2021-08-01 15:46:43 +02:00
filter [PR #2633/07085785 backport][stable-2] Dynamically add meta/runtime.yml redirects for integration tests to correctly report coverage (#2854) 2021-06-22 09:13:40 +02:00
inventory proxmox inventory plugin: Easy fix (#3052) (#3058) 2021-07-24 20:58:13 +02:00
lookup Updated the tss lookup plugin to reflect breaking changes introduced in the underpinning SDK (#3139) (#3151) 2021-08-05 22:41:29 +02:00
module_utils [stable-2] added supports_check_mode=True to info/facts modules (#3095) 2021-07-28 07:42:07 +02:00
modules Support older version of psutil (RHEL7 and RHEL6) (#2808) (#3188) 2021-08-10 08:08:46 +02:00