mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 21:00:22 -07:00
Remove trailing whitespace in digital_ocean_domain
This commit is contained in:
parent
442c8a5457
commit
bb9c7acc2f
1 changed files with 3 additions and 3 deletions
|
@ -145,7 +145,7 @@ class Domain(JsonfyMixIn):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
domains = Domain.list_all()
|
domains = Domain.list_all()
|
||||||
|
|
||||||
if id is not None:
|
if id is not None:
|
||||||
for domain in domains:
|
for domain in domains:
|
||||||
if domain.id == id:
|
if domain.id == id:
|
||||||
|
@ -203,10 +203,10 @@ def core(module):
|
||||||
domain = None
|
domain = None
|
||||||
if "id" in module.params:
|
if "id" in module.params:
|
||||||
domain = Domain.find(id=module.params["id"])
|
domain = Domain.find(id=module.params["id"])
|
||||||
|
|
||||||
if not domain and "name" in module.params:
|
if not domain and "name" in module.params:
|
||||||
domain = Domain.find(name=module.params["name"])
|
domain = Domain.find(name=module.params["name"])
|
||||||
|
|
||||||
if not domain:
|
if not domain:
|
||||||
module.exit_json(changed=False, msg="Domain not found.")
|
module.exit_json(changed=False, msg="Domain not found.")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue