mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Do not fetch or add keys for http based git urls
This commit is contained in:
parent
eeee1e1c5a
commit
3719f3f496
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ def get_fqdn(repo_url):
|
||||||
""" chop the hostname out of a giturl """
|
""" chop the hostname out of a giturl """
|
||||||
|
|
||||||
result = None
|
result = None
|
||||||
if "@" in repo_url:
|
if "@" in repo_url and not repo_url.startswith("http"):
|
||||||
repo_url = repo_url.split("@", 1)[1]
|
repo_url = repo_url.split("@", 1)[1]
|
||||||
if ":" in repo_url:
|
if ":" in repo_url:
|
||||||
repo_url = repo_url.split(":")[0]
|
repo_url = repo_url.split(":")[0]
|
||||||
|
|
Loading…
Reference in a new issue