mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-24 13:50:22 -07: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:
parent
01afed4dc5
commit
aebf6c8c92
3 changed files with 34 additions and 30 deletions
|
@ -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'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue