Skip to content

Commit 6f6eca5

Browse files
zupoSam Kottler
authored andcommitted
digital ocean: Remove unsupported states
1 parent fb4854e commit 6f6eca5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cloud/digital_ocean/digital_ocean_domain.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
description:
2828
- Indicate desired state of the target.
2929
default: present
30-
choices: ['present', 'active', 'absent', 'deleted']
30+
choices: ['present', 'absent']
3131
client_id:
3232
description:
3333
- DigitalOcean manager id.
@@ -181,7 +181,7 @@ def getkeyordie(k):
181181

182182
if not domain:
183183
domain = Domain.find(name=getkeyordie("name"))
184-
184+
185185
if not domain:
186186
domain = Domain.add(getkeyordie("name"),
187187
getkeyordie("ip"))
@@ -217,7 +217,7 @@ def getkeyordie(k):
217217
def main():
218218
module = AnsibleModule(
219219
argument_spec = dict(
220-
state = dict(choices=['active', 'present', 'absent', 'deleted'], default='present'),
220+
state = dict(choices=['present', 'absent'], default='present'),
221221
client_id = dict(aliases=['CLIENT_ID'], no_log=True),
222222
api_key = dict(aliases=['API_KEY'], no_log=True),
223223
name = dict(type='str'),

0 commit comments

Comments
 (0)