Windows: Small fix to Add-Warning and Add-DeprecationWarning (#23520)

Simplified the logic, and fix the issue of having a nested list as
entry.

Also indicate that we deliberately want to retain $null values
(and i.e. do not want them to be turned into a boolean).
This commit is contained in:
Dag Wieers 2017-05-09 18:18:37 +02:00 committed by Matt Davis
commit bc806ff479
3 changed files with 46 additions and 52 deletions

View file

@ -29,7 +29,7 @@
win_reg_stat:
name: a
register: actual
failed_when: "actual.msg != 'Missing required argument: path'"
failed_when: "actual.msg != 'Get-AnsibleParam: Missing required argument: path'"
- name: expect failure when passing in an invalid hive
win_reg_stat: