Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

win_powershell - fix empty array result value #711

Merged

Conversation

jborean93
Copy link
Collaborator

SUMMARY

Fix to ensure $Ansible.Result = @() is returned as an empty array and not null. This was a regression on a previous fix and this change goes back to the original behaviour.

Fixes: #686

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

win_powershell

Fix to ensure `$Ansible.Result = @()` is returned as an empty array and
not null. This was a regression on a previous fix and this change goes
back to the original behaviour.
@jborean93 jborean93 merged commit b6172c3 into ansible-collections:main Dec 9, 2024
39 checks passed
@jborean93 jborean93 deleted the win_powershell-result branch December 9, 2024 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

win_powershell: $Ansible.Result can no longer be set to an empty list
1 participant