1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

digital ocean: Remove unsupported states

This commit is contained in:
Nejc Zupan 2014-11-15 16:12:46 -05:00 committed by Matt Clay
parent 81978cbacb
commit 442c8a5457

View file

@ -27,7 +27,7 @@ options:
description: description:
- Indicate desired state of the target. - Indicate desired state of the target.
default: present default: present
choices: ['present', 'active', 'absent', 'deleted'] choices: ['present', 'absent']
client_id: client_id:
description: description:
- DigitalOcean manager id. - DigitalOcean manager id.
@ -181,7 +181,7 @@ def core(module):
if not domain: if not domain:
domain = Domain.find(name=getkeyordie("name")) domain = Domain.find(name=getkeyordie("name"))
if not domain: if not domain:
domain = Domain.add(getkeyordie("name"), domain = Domain.add(getkeyordie("name"),
getkeyordie("ip")) getkeyordie("ip"))
@ -217,7 +217,7 @@ def core(module):
def main(): def main():
module = AnsibleModule( module = AnsibleModule(
argument_spec = dict( 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), 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'),