-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
Do not crash if remote file does not exist #620
Conversation
Congratulations! One of the builds has completed. 🍾 You can install the built RPMs by following these steps:
Please note that the RPMs should be used only in a testing environment. |
Overall, I like the fix and the test. Let's move the unrelated stuff out and merge it. I hope this will also address the flakiness of some tests... |
Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Signed-off-by: Jakub Jelen <jjelen@redhat.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Should be "cleaned up". Let me know if there would be some other issues. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing this @Jakuje
@Jakuje thank you! I enabled auto-merge, it'll get into |
@Jakuje @KB-perByte this has been released as a part of v1.2.1: https://github.com/ansible/pylibssh/releases/tag/v1.2.1 / #613 / https://pypi.org/project/ansible-pylibssh/1.2.1/. Enjoy! 🎉 |
Thank you for the patience in getting this to the standard :) |
No problem ;) I actually enjoy helping contributors who maintain such a quality in their PRs. |
SUMMARY
The uninitialized pointer caused pylibssh crashing when the
scp.get()
failed in the first invocation oflibssh.ssh_scp_pull_request()
(generally when the remote file did not exist, or it was not possible to read it for some reason).This is the full log from libssh when pytest is executed directly with the
-s
argument:(running the test from tox showed just the last line with pytest crashing)
Fixes #208
Fixes #325
ISSUE TYPE