mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
d9c12d1d53
* 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
|
||
---|---|---|
.. | ||
.keep | ||
2.5.5.yml | ||
2808-pids-older-psutil.yml | ||
2816-archive-refactor.yml | ||
2923-archive-remove-bugfix.yml | ||
2924-npm-fix-package-json.yml | ||
2935-lvol-support_check_mode_thinpool.yml | ||
2936-pacman-fix_changed_status_when_ignorepkg_has_been_defined.yml | ||
2960-launchd-validation-check.yaml | ||
2967-proxmox_inventory-offline-node-fix.yml | ||
2989-pamd-single-line.yaml | ||
3006-redfish_command-bootoverride-argument-check.yaml | ||
3034-promox-kvm-return-new-id.yaml | ||
3036-archive-root-path-fix.yml | ||
3041-fix_gitlab_group_members_gitlab_project_mambers.yml | ||
3052_proxmox_inventory_plugin.yml | ||
3067-taiga-bugfix.yaml | ||
3074-ini_file-3031-empty-value-inconsistency.yml | ||
3080-java_cert-2460-import_private_key.yml | ||
3084-info-checkmode.yaml | ||
3093-ejabberd_user-refactor.yaml | ||
3104-deploy_helper-required_if.yaml | ||
3139-tss-lookup-plugin-update-to-make-compatible-with-sdk-v1.yml | ||
3161-openbsd-pkg-fix-regexp-matching-crash.yml |