From 7115cb1f3796d49f1b6547e42c1108c39c614bad Mon Sep 17 00:00:00 2001 From: Casey Fitzpatrick Date: Wed, 2 Jul 2014 19:54:50 -0400 Subject: [PATCH] removed port from domain name qualification, fixes 7941 --- lib/ansible/module_utils/known_hosts.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ansible/module_utils/known_hosts.py b/lib/ansible/module_utils/known_hosts.py index 121dc2e5ab..3406e2c7da 100644 --- a/lib/ansible/module_utils/known_hosts.py +++ b/lib/ansible/module_utils/known_hosts.py @@ -74,6 +74,8 @@ def get_fqdn(repo_url): return None if parts[1] != '': result = parts[1] + if ":" in result: + result = result.split(":")[0] if "@" in result: result = result.split("@", 1)[1]