diff options
author | Nejc Zupan <nejc.zupan@gmail.com> | 2014-11-15 16:12:46 -0500 |
---|---|---|
committer | Sam Kottler <shk@linux.com> | 2014-11-15 16:12:46 -0500 |
commit | 6f6eca5b4e91b08b22b6e3e74db95723ac10f1a7 (patch) | |
tree | a830a92fea5fca375ace27c30a7a782a490eac11 | |
parent | fb4854ebcbc35b3038530de91a472ef7d0b7b710 (diff) | |
download | ansible-modules-core-6f6eca5b4e91b08b22b6e3e74db95723ac10f1a7.tar.gz |
digital ocean: Remove unsupported states
-rw-r--r-- | cloud/digital_ocean/digital_ocean_domain.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cloud/digital_ocean/digital_ocean_domain.py b/cloud/digital_ocean/digital_ocean_domain.py index d0615ad0..88b4af1c 100644 --- a/cloud/digital_ocean/digital_ocean_domain.py +++ b/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'), |