From 6ff693f97579a00b560f378b03de43e16fae35ae Mon Sep 17 00:00:00 2001 From: Michael Schuett Date: Thu, 2 Jul 2015 11:45:29 -0400 Subject: [PATCH] Remove faulty logic Update logic after splitting the error into two separate messages. --- lib/ansible/modules/cloud/docker/docker_image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/docker/docker_image.py b/lib/ansible/modules/cloud/docker/docker_image.py index 4498998e8fe..1800dfa28d9 100644 --- a/lib/ansible/modules/cloud/docker/docker_image.py +++ b/lib/ansible/modules/cloud/docker/docker_image.py @@ -407,7 +407,7 @@ def main(): module.exit_json(failed=failed, changed=manager.has_changed(), msg=msg, image_id=image_id) except SSLError as e: - if get_platform() == "Darwin" and "DOCKER_HOST" in os.environ: + if get_platform() == "Darwin": # Ensure that the environment variables has been set if "DOCKER_HOST" not in os.environ: environment_error = '''