From 31bc25063eb9cf567ec883a278ee46ddc2a91d2b Mon Sep 17 00:00:00 2001 From: Benjamin Schwarze Date: Sat, 22 Jun 2013 14:48:25 +0200 Subject: [PATCH] fix wrong argument_spec in digital_ocean module as 'required' and 'default' are mutually exclusive removed 'required' in preference of 'default' --- library/cloud/digital_ocean | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/library/cloud/digital_ocean b/library/cloud/digital_ocean index b510ce2e147..60ee4928fbf 100644 --- a/library/cloud/digital_ocean +++ b/library/cloud/digital_ocean @@ -26,12 +26,12 @@ options: command: description: - Which target you want to operate on. - required: true + default: droplet choices: ['droplet', 'ssh'] state: description: - Indicate desired state of the target. - required: true + default: present choices: ['present', 'active', 'absent', 'deleted'] client_id: description: @@ -352,8 +352,8 @@ def core(module): def main(): module = AnsibleModule( argument_spec = dict( - command = dict(required=True, choices=['droplet', 'ssh'], default='droplet'), - state = dict(required=True, choices=['active', 'present', 'absent', 'deleted'], default='present'), + command = dict(choices=['droplet', 'ssh'], default='droplet'), + state = dict(choices=['active', 'present', 'absent', 'deleted'], default='present'), client_id = dict(aliases=['CLIENT_ID'], no_log=True), api_key = dict(aliases=['API_KEY'], no_log=True), name = dict(type='str'),