mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-27 07:01:22 -07:00
parent
1d61b15603
commit
360d8b0fc2
1 changed files with 3 additions and 0 deletions
|
@ -69,6 +69,9 @@ def get_fqdn(repo_url):
|
||||||
elif "://" in repo_url:
|
elif "://" in repo_url:
|
||||||
# this should be something we can parse with urlparse
|
# this should be something we can parse with urlparse
|
||||||
parts = urlparse.urlparse(repo_url)
|
parts = urlparse.urlparse(repo_url)
|
||||||
|
if 'ssh' not in parts[0] and 'git' not in parts[0]:
|
||||||
|
# don't try and scan a hostname that's not ssh
|
||||||
|
return None
|
||||||
if parts[1] != '':
|
if parts[1] != '':
|
||||||
result = parts[1]
|
result = parts[1]
|
||||||
if "@" in result:
|
if "@" in result:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue