From bb9c7acc2f553556b160562fe99de931a26d4180 Mon Sep 17 00:00:00 2001 From: Sam Kottler Date: Sat, 15 Nov 2014 16:21:07 -0500 Subject: [PATCH] Remove trailing whitespace in digital_ocean_domain --- .../modules/cloud/digital_ocean/digital_ocean_domain.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ansible/modules/cloud/digital_ocean/digital_ocean_domain.py b/lib/ansible/modules/cloud/digital_ocean/digital_ocean_domain.py index 88b4af1c5e..1086a6bab1 100644 --- a/lib/ansible/modules/cloud/digital_ocean/digital_ocean_domain.py +++ b/lib/ansible/modules/cloud/digital_ocean/digital_ocean_domain.py @@ -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.")