mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Improved handling of role_version in repo_url_to_role_name
This commit is contained in:
committed by
Michael DeHaan
parent
1803976a40
commit
4803e923ff
@@ -356,6 +356,8 @@ def repo_url_to_role_name(repo_url):
|
||||
trailing_path = repo_url.split('/')[-1]
|
||||
if trailing_path.endswith('.git'):
|
||||
trailing_path = trailing_path[:-4]
|
||||
if ',' in trailing_path:
|
||||
trailing_path = trailing_path.split(',')[0]
|
||||
return trailing_path
|
||||
|
||||
def json_loads(data):
|
||||
|
||||
Reference in New Issue
Block a user