digital_ocean_domain: fix do not fail if domain already is absent (#40446)

pull/40513/merge
Ben Hagen 7 years ago committed by René Moser
parent 9b22438a9b
commit 7eb98660a4

@ -168,7 +168,7 @@ def core(module):
elif state == 'absent':
if not domain:
module.fail_json(changed=False, msg="Domain not found")
module.exit_json(changed=False, msg="Domain not found")
else:
delete_event = do_manager.destroy_domain()
if not delete_event:

Loading…
Cancel
Save