You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The type of data in return_values.updates is not a dict ({}) if no updates were found, instead it's a list ([]), therefore dict2items Jinja filter returns an error instead of usually working if updates are found.
Wow I don't know how this went unnoticed but looks like both updates and filtered_updates are returning a list of dicts rather than the dict with the key being the update guid. This is a result of the large refactor on in 1.7.0 of this collection #225. Will have to fix that up so it returns the dict format that was used historically.
SUMMARY
The type of data in return_values.updates is not a dict ({}) if no updates were found, instead it's a list ([]), therefore dict2items Jinja filter returns an error instead of usually working if updates are found.
ISSUE TYPE
COMPONENT NAME
win_updates module
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
Ubuntu 20.04, python 3.8.10
STEPS TO REPRODUCE
EXPECTED RESULTS
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: