mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 21:00:22 -07:00
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:
parent
91449ea231
commit
bc806ff479
3 changed files with 46 additions and 52 deletions
|
@ -131,7 +131,7 @@
|
|||
win_find:
|
||||
patterns: a
|
||||
register: actual
|
||||
failed_when: "actual.msg != 'Missing required argument: paths'"
|
||||
failed_when: "actual.msg != 'Get-AnsibleParam: Missing required argument: paths'"
|
||||
|
||||
- name: expect failure when setting paths to a file
|
||||
win_find:
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue