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

This commit is contained in:
Ben Hagen 2018-05-22 07:59:06 +02:00 committed by René Moser
parent 9b22438a9b
commit 7eb98660a4

View file

@ -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: