mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 22:33:25 +00:00
[PR #6152/11c7611c backport][stable-6] More true/false normalization (#6153)
More true/false normalization (#6152)
* More true/false normalization.
* Boolean do not need explicit choices.
* One more.
* Fix type argument.
(cherry picked from commit 11c7611ced)
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
@@ -100,7 +100,7 @@ powerstate:
|
||||
description: The current power state of the machine.
|
||||
returned: success and I(machine) is not provided
|
||||
type: str
|
||||
sample: on
|
||||
sample: 'on'
|
||||
status:
|
||||
description: The current power state of the machine when the machine option is set.
|
||||
returned: success and I(machine) is provided
|
||||
@@ -132,14 +132,14 @@ EXAMPLES = '''
|
||||
name: test.testdomain.com
|
||||
user: admin
|
||||
password: password
|
||||
state: on
|
||||
state: 'on'
|
||||
|
||||
- name: Ensure machines of which remote target address is 48 and 50 are powered off
|
||||
community.general.ipmi_power:
|
||||
name: test.testdomain.com
|
||||
user: admin
|
||||
password: password
|
||||
state: off
|
||||
state: 'off'
|
||||
machine:
|
||||
- targetAddress: 48
|
||||
- targetAddress: 50
|
||||
@@ -151,9 +151,9 @@ EXAMPLES = '''
|
||||
password: password
|
||||
machine:
|
||||
- targetAddress: 48
|
||||
state: on
|
||||
state: 'on'
|
||||
- targetAddress: 50
|
||||
state: off
|
||||
state: 'off'
|
||||
'''
|
||||
|
||||
import traceback
|
||||
|
||||
Reference in New Issue
Block a user