digital_ocean_domain: fix do not fail if domain already is absent (#40446)
This commit is contained in:
parent
9b22438a9b
commit
7eb98660a4
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue