Repository navigation
Add more tests related to Ansible runtime path modifications - #3529
Conversation
4f7b999 to
f2d8d97
Compare
|
I like that you merge the values here instead of just overwriting one with another. Yet the solution feels somewhat hacky: you introduce special handling only for ANSIBLE_ROLES_PATH and ANSIBLE_COLLECTIONS_PATH. How do we know that those are the only env vars that need to be merged? What about ANSIBLE_LIBRARY_PATH? There may be more such variables, how should we treat them and why? Also, the code is not exactly DRY and has a potential to become even more repetitive. What if we decide that another variable needs to follow the same logic? I think that merging of colon-separated lists should be split off into a function. |
|
Thanks for the feedback, I'll get to work on updating the pull request. |
0453e91 to
fb442dd
Compare
I was about to suggest writing a modified version of utils.merge_dicts() but I'm not sure how to make this function generic. I mean there's no way to know how to merge two variables without knowing what the env variables contain. |
52b9aa9 to
5bd4851
Compare
|
@sio |
|
Hi @ssbarnea The original issue is Could you please consider the following implementation?
|
|
Can you please rebase this? |
c92b75b to
160b9e2
Compare
See: #3516