Backport/2.8/57257 option is marked as required but specifies a default (#57750)

* option is marked as required but specifies a default (#57257)

* required and default are conflicting

(cherry picked from commit 05e6339c49)

* add a changelog fragment for PR 57750.
This commit is contained in:
YuandongXu 2019-06-18 09:29:36 +08:00 committed by Toshio Kuratomi
parent fd04094bde
commit bb6955c5eb
3 changed files with 5 additions and 4 deletions

View file

@ -0,0 +1,2 @@
bugfixes:
- option is marked as required but specifies a default.(https://github.com/ansible/ansible/pull/57257)

View file

@ -34,7 +34,7 @@ options:
description:
- Safeguard boolean. Set to true if you're sure you want to reboot.
type: bool
default: false
required: true
save_config:
description:
- Flag indicating whether to save the configuration.
@ -134,8 +134,8 @@ def main():
""" main """
argument_spec = dict(
confirm=dict(required=True, type='bool', default='false'),
save_config=dict(required=False, type='bool', default='false')
confirm=dict(required=True, type='bool'),
save_config=dict(default=False, type='bool')
)
argument_spec.update(ce_argument_spec)

View file

@ -464,7 +464,6 @@ lib/ansible/modules/network/cloudengine/ce_ntp.py E322
lib/ansible/modules/network/cloudengine/ce_ntp_auth.py E322
lib/ansible/modules/network/cloudengine/ce_ospf.py E322
lib/ansible/modules/network/cloudengine/ce_ospf_vrf.py E322
lib/ansible/modules/network/cloudengine/ce_reboot.py E317
lib/ansible/modules/network/cloudengine/ce_reboot.py E322
lib/ansible/modules/network/cloudengine/ce_rollback.py E322
lib/ansible/modules/network/cloudengine/ce_sflow.py E322