mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
e11bf7d788
* 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 | ||
3.5.0.yml | ||
2808-pids-older-psutil.yml | ||
2946-python-dnsimple-v2-rewrite.yml | ||
3034-promox-kvm-return-new-id.yaml | ||
3036-archive-root-path-fix.yml | ||
3038-enhance_github_repo_api_url.yml | ||
3041-fix_gitlab_group_members_gitlab_project_mambers.yml | ||
3044-proxmox-inventory-snapshots.yml | ||
3052_proxmox_inventory_plugin.yml | ||
3067-taiga-bugfix.yaml | ||
3068-supervisorctl-bugfix.yaml | ||
3074-ini_file-3031-empty-value-inconsistency.yml | ||
3079-report-power-state-hpilo.yaml | ||
3080-java_cert-2460-import_private_key.yml | ||
3081-add-wifi-option-to-nmcli-module.yml | ||
3084-info-checkmode.yaml | ||
3092-gunicorn-refactor.yaml | ||
3093-ejabberd_user-refactor.yaml | ||
3098-django_manage-cmd-list.yaml | ||
3104-deploy_helper-required_if.yaml | ||
3106-apache2_module-review.yaml | ||
3125-hana-query-userstore.yaml | ||
3132-nmcli-dummy.yaml | ||
3135-add-redfish_command-bootoverridemode.yaml | ||
3136-add-wifi-sec-change-detection-to-nmcli-module.yml | ||
3139-tss-lookup-plugin-update-to-make-compatible-with-sdk-v1.yml | ||
3160-pass-wifi-secrets-via-stdin-to-nmcli-module.yml | ||
3161-openbsd-pkg-fix-regexp-matching-crash.yml | ||
pkgin-output-after-error.yml |