Open danowar2k opened 4 days ago
Files identified in the description:
If these files are incorrect, please update the component name
section of the description or use the !component
bot command.
cc @bcoca @matburt @maxamillion click here for bot help
Using the --format
parameter has been part of the module since it was initially created (https://github.com/ansible/ansible/pull/49079). I guess the requirements for this module should be updated to mention the minimum required pip version.
(If anyone wants to implement support for older pip versions as a new feature, feel free...)
I agree to just updating the docs (because I already did my task in another way ;-) ).
Summary
Listing pip packages, the task returns:
The reason is that pip only added the
--format
option in version 20.3b1 (see https://pip.pypa.io/en/stable/news/#b1-2020-10-31)So either lower pip versions have to omit the
--format
option and extract package info otherwise OR you should add the minimum required pip version to the pip_package_info docs (see https://docs.ansible.com/ansible/latest/collections/community/general/pip_package_info_module.html#requirements)Additional info: The used pip version was 8.1.1 so really old. pip_package_info should have been used to detect its version and then update that to a newer one.
Issue Type
Documentation Report
Component Name
pip_package_info
Ansible Version
Community.general Version
Configuration
OS / Environment
No response
Additional Information
If the docs are updated, users better understand when this module can be used.
Code of Conduct