mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-30 04:49:09 -07:00
Adding success_msg to assert (#41048)
* Adding success_msg to assert * Added missing version_added. Importing and checking string_types.
This commit is contained in:
parent
50e776877d
commit
0d885260a5
2 changed files with 14 additions and 2 deletions
|
@ -30,6 +30,10 @@ options:
|
|||
msg:
|
||||
description:
|
||||
- "The customized message used for a failing assertion"
|
||||
success_msg:
|
||||
version_added: "2.7"
|
||||
description:
|
||||
- "The customized message used for a successful assertion"
|
||||
notes:
|
||||
- This module is also supported for Windows targets.
|
||||
author:
|
||||
|
@ -50,4 +54,5 @@ EXAMPLES = '''
|
|||
- "my_param <= 100"
|
||||
- "my_param >= 0"
|
||||
msg: "'my_param' must be between 0 and 100"
|
||||
success_msg: "'my_param' is between 0 and 100"
|
||||
'''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue