mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-28 07:31:23 -07:00
Tidied up a little, added tests
Moved repo_url_to_role_name to common method in ansible.utils Added unit test for repo_url_to_role_name Added integration tests for galaxy
This commit is contained in:
parent
b550cb9bc3
commit
c2fe33f9f4
7 changed files with 38 additions and 7 deletions
|
@ -181,7 +181,7 @@ class Play(object):
|
|||
if '+' in orig_path and '://' in orig_path:
|
||||
# dependency name pointing to SCM URL
|
||||
# assume role name is last part of the URL
|
||||
orig_path = orig_path.split('/')[-1]
|
||||
orig_path = utils.repo_url_to_role_name(orig_path)
|
||||
|
||||
role_vars = {}
|
||||
if type(orig_path) == dict:
|
||||
|
@ -417,7 +417,7 @@ class Play(object):
|
|||
else:
|
||||
role_name = role
|
||||
if '+' in role_name and '://' in role_name:
|
||||
role_name = role_name.split('/')[-1]
|
||||
role_name = utils.repo_url_to_role_name(role_name)
|
||||
|
||||
role_names.append(role_name)
|
||||
if os.path.isfile(task):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue