diff --git a/changelogs/fragments/4078-python_requirements_info.yaml b/changelogs/fragments/4078-python_requirements_info.yaml new file mode 100644 index 0000000000..db6aa8ab77 --- /dev/null +++ b/changelogs/fragments/4078-python_requirements_info.yaml @@ -0,0 +1,2 @@ +bugfixes: + - python_requirements_info - store ``mismatched`` return values per package as documented in the module (https://github.com/ansible-collections/community.general/pull/4078). \ No newline at end of file diff --git a/plugins/modules/system/python_requirements_info.py b/plugins/modules/system/python_requirements_info.py index 76be56850d..dc0e0a44cc 100644 --- a/plugins/modules/system/python_requirements_info.py +++ b/plugins/modules/system/python_requirements_info.py @@ -193,7 +193,7 @@ def main(): 'desired': dep, } else: - results['mismatched'] = { + results['mismatched'][pkg] = { 'installed': existing, 'desired': dep, }