Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore empty env variable values when updating them #1552

Merged

Conversation

tadeboro
Copy link
Contributor

Right now, if the variable is not set, prerun routines will prepend the : to the variable value, which is not something we want. This commit makes sure we properly handle the aforementioned situation and ignore any empty values.

Should fix the problem described in ansible/molecule#3122

@tadeboro tadeboro requested a review from ssbarnea as a code owner May 17, 2021 22:49
@tadeboro tadeboro added the bug label May 18, 2021
@ssbarnea
Copy link
Member

Please rebase so we get rid of the fixed Ci issues.

Right now, if the variable is not set, prerun routines will preped the
: to the variable value, which is not something we want. This commit
makes sure we properly handle the aforementioned situation and ignore
any empty values.
@tadeboro tadeboro force-pushed the fix-bad-env-var-list-construction branch from 06f0e70 to d021d3d Compare May 18, 2021 12:58
@tadeboro
Copy link
Contributor Author

Hmm, looks like I broke something since the eco test is failing. This sounds like an interesting problem.

@ssbarnea
Copy link
Member

Hmm, looks like I broke something since the eco test is failing. This sounds like an interesting problem.

Yep, I already contacted @greg-hellings on that. It may be possible to be a bug in his role testing that your fix uncovered. Ansible is unable to find that action plugin after this change. Lets see which one finds the root cause for that.

ssbarnea added a commit to ssbarnea/ansible_collection_system that referenced this pull request May 18, 2021
Collection layout expectes all action plugins to be inside
plugins/modules.

Found while testing: ansible/ansible-lint#1552
ssbarnea added a commit to ssbarnea/ansible_collection_system that referenced this pull request May 18, 2021
Collection layout expectes all action plugins to be inside
plugins/modules.

Found while testing: ansible/ansible-lint#1552
ssbarnea added a commit to ssbarnea/ansible_collection_system that referenced this pull request May 18, 2021
Collection layout expectes all action plugins to be inside
plugins/modules.

Found while testing: ansible/ansible-lint#1552
@tadeboro tadeboro closed this May 18, 2021
@tadeboro tadeboro reopened this May 18, 2021
@ssbarnea ssbarnea merged commit 5400ae3 into ansible:master May 18, 2021
@tadeboro tadeboro deleted the fix-bad-env-var-list-construction branch May 18, 2021 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants