mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
python_requirements_info: don't overwrite results in 'mismatched' dict key (#4078)
* bugfix: don't overwrite results in 'mismatched' Whichever mismatched package is evaluated last is the value stored in the 'mismatched' key. Instead, it should have a subdict for each pkg that is mismatched to keep in line with its documented usage. * Update changelogs/fragments/4078-python_requirements_info.yaml Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
e793e2e94f
commit
526369a243
2 changed files with 3 additions and 1 deletions
2
changelogs/fragments/4078-python_requirements_info.yaml
Normal file
2
changelogs/fragments/4078-python_requirements_info.yaml
Normal file
|
@ -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).
|
|
@ -193,7 +193,7 @@ def main():
|
|||
'desired': dep,
|
||||
}
|
||||
else:
|
||||
results['mismatched'] = {
|
||||
results['mismatched'][pkg] = {
|
||||
'installed': existing,
|
||||
'desired': dep,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue