-
Notifications
You must be signed in to change notification settings - Fork 148
Replace lstrip with substring to resolve #685 #686
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
Replace lstrip with substring to resolve #685 #686
Conversation
I took the liberty of opening up a PR myself as it is only a small fix. I hope the integration test is up to spec as I'm not a day to day python developer. |
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.
Thank you for putting up the fix!
a823ae9
to
6575720
Compare
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.
Looks good to me!
Thank you for your contribution! We will merge it after bumping the Python version because See #698 |
📝 Description
This PR fixes the issue described in #685.
It replaces the existing
lstrip
call to extract the object prefix with a substring based on the length of the bucket name.✔️ How to Test
Tested full objects module and new test case which tries to reproduce the case described in #685.
make MODULE=obj testint
make MODULE=obj TEST_CASE=test_obj_single_file_single_bucket_with_prefix_ltrim testint