mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #7789 from mattjbray/fix-get-fqdn
fix for repo urls like ssh://git@github.com/ansible/ansible.git
This commit is contained in:
commit
ab965879c7
1 changed files with 3 additions and 1 deletions
|
@ -71,6 +71,8 @@ def get_fqdn(repo_url):
|
||||||
parts = urlparse.urlparse(repo_url)
|
parts = urlparse.urlparse(repo_url)
|
||||||
if parts[1] != '':
|
if parts[1] != '':
|
||||||
result = parts[1]
|
result = parts[1]
|
||||||
|
if "@" in result:
|
||||||
|
result = result.split("@", 1)[1]
|
||||||
|
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue