From 3719f3f496bb4517eddf52d9f47b406fe14f63b8 Mon Sep 17 00:00:00 2001 From: James Tanner Date: Sat, 11 Jan 2014 15:15:23 -0500 Subject: [PATCH] Do not fetch or add keys for http based git urls --- lib/ansible/module_utils/known_hosts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/module_utils/known_hosts.py b/lib/ansible/module_utils/known_hosts.py index 846965107f..34bc8bc7fd 100644 --- a/lib/ansible/module_utils/known_hosts.py +++ b/lib/ansible/module_utils/known_hosts.py @@ -18,7 +18,7 @@ def get_fqdn(repo_url): """ chop the hostname out of a giturl """ result = None - if "@" in repo_url: + if "@" in repo_url and not repo_url.startswith("http"): repo_url = repo_url.split("@", 1)[1] if ":" in repo_url: repo_url = repo_url.split(":")[0]