Remove trailing whitespace in digital_ocean_domain

This commit is contained in:
Sam Kottler 2014-11-15 16:21:07 -05:00 committed by Matt Clay
parent 442c8a5457
commit bb9c7acc2f

View file

@ -145,7 +145,7 @@ class Domain(JsonfyMixIn):
return False
domains = Domain.list_all()
if id is not None:
for domain in domains:
if domain.id == id:
@ -203,10 +203,10 @@ def core(module):
domain = None
if "id" in module.params:
domain = Domain.find(id=module.params["id"])
if not domain and "name" in module.params:
domain = Domain.find(name=module.params["name"])
if not domain:
module.exit_json(changed=False, msg="Domain not found.")