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:
Dag Wieers 2017-02-24 08:08:19 +01:00 committed by Matt Davis
commit aebf6c8c92
3 changed files with 34 additions and 30 deletions

View file

@ -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'