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

Fix win_lineinfile crash #221

Merged

Conversation

phoenikz
Copy link
Contributor

@phoenikz phoenikz commented Apr 1, 2021

SUMMARY

win_lineinfile module crashes if insertafter and insertbefore
parameters are simultaneously given. By moving when the warning
is issued to after init of result variable, the crash is avoided.

Fixes #220

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

win_lineinfile

dblixt2 and others added 2 commits April 1, 2021 16:38
win_lineinfile module crashes if insertafter and insertbefore
parameters are simultaneously given. By moving when the warning
is issued to after init of result variable, the crash is avoided.
@jborean93
Copy link
Collaborator

Thanks for the fix here, I've added a changelog fragment so the fix appears in the changelog of the next release.

@jborean93 jborean93 merged commit 0a087e7 into ansible-collections:main May 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

win_lineinfile crashes when both insertafter and insertbefore is given
3 participants