From 442c8a5457b0d9f31820fcb2ac85c4cdab8b3c1b Mon Sep 17 00:00:00 2001 From: Nejc Zupan Date: Sat, 15 Nov 2014 16:12:46 -0500 Subject: [PATCH] digital ocean: Remove unsupported states --- .../modules/cloud/digital_ocean/digital_ocean_domain.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ansible/modules/cloud/digital_ocean/digital_ocean_domain.py b/lib/ansible/modules/cloud/digital_ocean/digital_ocean_domain.py index d0615ad0df..88b4af1c5e 100644 --- a/lib/ansible/modules/cloud/digital_ocean/digital_ocean_domain.py +++ b/lib/ansible/modules/cloud/digital_ocean/digital_ocean_domain.py @@ -27,7 +27,7 @@ options: description: - Indicate desired state of the target. default: present - choices: ['present', 'active', 'absent', 'deleted'] + choices: ['present', 'absent'] client_id: description: - DigitalOcean manager id. @@ -181,7 +181,7 @@ def core(module): if not domain: domain = Domain.find(name=getkeyordie("name")) - + if not domain: domain = Domain.add(getkeyordie("name"), getkeyordie("ip")) @@ -217,7 +217,7 @@ def core(module): def main(): module = AnsibleModule( argument_spec = dict( - state = dict(choices=['active', 'present', 'absent', 'deleted'], default='present'), + state = dict(choices=['present', 'absent'], default='present'), client_id = dict(aliases=['CLIENT_ID'], no_log=True), api_key = dict(aliases=['API_KEY'], no_log=True), name = dict(type='str'),