mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
python2.4 compatibility issue with urlparse
This commit is contained in:
@@ -72,6 +72,8 @@ def get_fqdn(repo_url):
|
|||||||
if 'ssh' not in parts[0] and 'git' not in parts[0]:
|
if 'ssh' not in parts[0] and 'git' not in parts[0]:
|
||||||
# don't try and scan a hostname that's not ssh
|
# don't try and scan a hostname that's not ssh
|
||||||
return None
|
return None
|
||||||
|
# parts[1] will be empty on python2.4 on ssh:// or git:// urls, so
|
||||||
|
# ensure we actually have a parts[1] before continuing.
|
||||||
if parts[1] != '':
|
if parts[1] != '':
|
||||||
result = parts[1]
|
result = parts[1]
|
||||||
if ":" in result:
|
if ":" in result:
|
||||||
|
|||||||
Reference in New Issue
Block a user