From 577306e74b23e779c16945ef09cdc7a7cc097dde Mon Sep 17 00:00:00 2001 From: Fran Garcia Date: Wed, 25 Jul 2018 11:19:24 +0200 Subject: [PATCH] Fix #42000 : ovirt_host_pm documentation for slot parameter (#42196) * Fix for #42000: ovirt_host_pm ignores slot parameter * Fix for #42000: ovirt_host_pm ignores slot parameter * Remove non-required slot parameter --- .../modules/cloud/ovirt/ovirt_host_pm.py | 22 ++++++++++++++----- 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/lib/ansible/modules/cloud/ovirt/ovirt_host_pm.py b/lib/ansible/modules/cloud/ovirt/ovirt_host_pm.py index 88edf355f84..098db341f75 100644 --- a/lib/ansible/modules/cloud/ovirt/ovirt_host_pm.py +++ b/lib/ansible/modules/cloud/ovirt/ovirt_host_pm.py @@ -61,13 +61,10 @@ options: port: description: - "Power management interface port." - slot: - description: - - "Power management slot." options: description: - - "Dictionary of additional fence agent options." - - "Additional information about options can be found at U(https://fedorahosted.org/cluster/wiki/FenceArguments)." + - "Dictionary of additional fence agent options (including Power Management slot)." + - "Additional information about options can be found at U(https://github.com/ClusterLabs/fence-agents/blob/master/doc/FenceAgentAPI.md)." encrypt_options: description: - "If (true) options will be encrypted when send to agent." @@ -95,6 +92,20 @@ EXAMPLES = ''' port: 3333 type: ipmilan +# Add fence agent to host 'myhost' using 'slot' option +- ovirt_host_pm: + name: myhost + address: 1.2.3.4 + options: + myoption1: x + myoption2: y + slot: myslot + username: admin + password: admin + port: 3333 + type: ipmilan + + # Remove ipmilan fence agent with address 1.2.3.4 on host 'myhost' - ovirt_host_pm: state: absent @@ -190,7 +201,6 @@ def main(): type=dict(default=None), port=dict(default=None, type='int'), order=dict(default=None, type='int'), - slot=dict(default=None), options=dict(default=None, type='dict'), encrypt_options=dict(default=None, type='bool', aliases=['encrypt']), )