mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
Update tests for ansible-galaxy CLI additions.
This commit is contained in:
@@ -381,11 +381,15 @@ def role_spec_parse(role_spec):
|
||||
# }
|
||||
|
||||
role_spec = role_spec.strip()
|
||||
role_version = 'master'
|
||||
role_version = ''
|
||||
if role_spec == "" or role_spec.startswith("#"):
|
||||
return (None, None, None, None)
|
||||
|
||||
tokens = [s.strip() for s in role_spec.split(',')]
|
||||
|
||||
if not tokens[0].endswith('.tar.gz'):
|
||||
# pick a reasonable default branch
|
||||
role_version = 'master'
|
||||
|
||||
# assume https://github.com URLs are git+https:// URLs and not
|
||||
# tarballs unless they end in '.zip'
|
||||
|
||||
Reference in New Issue
Block a user