mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-03 04:34:24 -07:00
comment out module deprecation and change idempotent boot_once parameter description
This commit is contained in:
parent
c12be901a4
commit
cc30531d0f
1 changed files with 7 additions and 7 deletions
|
@ -78,7 +78,7 @@ options:
|
||||||
choices: ["SSLv3", "SSLv23", "TLSv1", "TLSv1_1", "TLSv1_2"]
|
choices: ["SSLv3", "SSLv23", "TLSv1", "TLSv1_1", "TLSv1_2"]
|
||||||
idempotent_boot_once:
|
idempotent_boot_once:
|
||||||
description:
|
description:
|
||||||
- "This makes the boot_once idempotent see github PR: U(https://github.com/ansible-collections/community.general/pull/9646)."
|
- "This options makes boot_once succeed instead of failing when the server is already powered on."
|
||||||
type: bool
|
type: bool
|
||||||
default: false
|
default: false
|
||||||
requirements:
|
requirements:
|
||||||
|
@ -196,12 +196,12 @@ def main():
|
||||||
|
|
||||||
if power_status == 'ON':
|
if power_status == 'ON':
|
||||||
if not force and not idempotent_boot_once:
|
if not force and not idempotent_boot_once:
|
||||||
module.deprecate(
|
# module.deprecate(
|
||||||
'The failure of the module when the server is already powered on is being deprecated.'
|
# 'The failure of the module when the server is already powered on is being deprecated.'
|
||||||
' Please set the parameter "idempotent_boot_once=true" to start using the new behavior.',
|
# ' Please set the parameter "idempotent_boot_once=true" to start using the new behavior.',
|
||||||
version='11.0.0',
|
# version='11.0.0',
|
||||||
collection_name='community.general'
|
# collection_name='community.general'
|
||||||
)
|
# )
|
||||||
module.fail_json(msg='HP iLO (%s) reports that the server is already powered on !' % host)
|
module.fail_json(msg='HP iLO (%s) reports that the server is already powered on !' % host)
|
||||||
elif not force and idempotent_boot_once:
|
elif not force and idempotent_boot_once:
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue