mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
fix wrong argument_spec in digital_ocean module
as 'required' and 'default' are mutually exclusive removed 'required' in preference of 'default'
This commit is contained in:
@@ -26,12 +26,12 @@ options:
|
|||||||
command:
|
command:
|
||||||
description:
|
description:
|
||||||
- Which target you want to operate on.
|
- Which target you want to operate on.
|
||||||
required: true
|
default: droplet
|
||||||
choices: ['droplet', 'ssh']
|
choices: ['droplet', 'ssh']
|
||||||
state:
|
state:
|
||||||
description:
|
description:
|
||||||
- Indicate desired state of the target.
|
- Indicate desired state of the target.
|
||||||
required: true
|
default: present
|
||||||
choices: ['present', 'active', 'absent', 'deleted']
|
choices: ['present', 'active', 'absent', 'deleted']
|
||||||
client_id:
|
client_id:
|
||||||
description:
|
description:
|
||||||
@@ -352,8 +352,8 @@ def core(module):
|
|||||||
def main():
|
def main():
|
||||||
module = AnsibleModule(
|
module = AnsibleModule(
|
||||||
argument_spec = dict(
|
argument_spec = dict(
|
||||||
command = dict(required=True, choices=['droplet', 'ssh'], default='droplet'),
|
command = dict(choices=['droplet', 'ssh'], default='droplet'),
|
||||||
state = dict(required=True, choices=['active', 'present', 'absent', 'deleted'], default='present'),
|
state = dict(choices=['active', 'present', 'absent', 'deleted'], default='present'),
|
||||||
client_id = dict(aliases=['CLIENT_ID'], no_log=True),
|
client_id = dict(aliases=['CLIENT_ID'], no_log=True),
|
||||||
api_key = dict(aliases=['API_KEY'], no_log=True),
|
api_key = dict(aliases=['API_KEY'], no_log=True),
|
||||||
name = dict(type='str'),
|
name = dict(type='str'),
|
||||||
|
|||||||
Reference in New Issue
Block a user