mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
centralize path list handling
move it to constants and avoid duplicating code or misinforming developers on the nature of the data
This commit is contained in:
parent
3f6166d2bf
commit
92d154f4ef
4 changed files with 20 additions and 18 deletions
|
@ -143,8 +143,7 @@ class RoleDefinition(Base, Become, Conditional, Taggable):
|
|||
|
||||
# also search in the configured roles path
|
||||
if C.DEFAULT_ROLES_PATH:
|
||||
configured_paths = C.DEFAULT_ROLES_PATH.split(os.pathsep)
|
||||
role_search_paths.extend(configured_paths)
|
||||
role_search_paths.extend(C.DEFAULT_ROLES_PATH)
|
||||
|
||||
# finally, append the roles basedir, if it was set, so we can
|
||||
# search relative to that directory for dependent roles
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue