mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
powershell.ps1: Ensure Fail-Json() works with Hashtables (#21697)
Without this change a dictionary $result object would be emptied if it is anything but a PSCustomObject. Now we also support Hashtables.
This commit is contained in:
@@ -116,7 +116,7 @@
|
||||
that:
|
||||
- asyncresult.ansible_job_id is match('\d+\.\d+')
|
||||
- asyncresult.finished == 1
|
||||
- asyncresult.changed == false
|
||||
- asyncresult.changed == true
|
||||
- asyncresult | failed == true
|
||||
- asyncresult.msg == 'failed gracefully'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user