-
Notifications
You must be signed in to change notification settings - Fork 66
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
get_relocatable_s3_url: support :debug suffix in s3_version #608
Conversation
ccmlib/scylla_repository.py
Outdated
if s3_version.endswith(":debug"): | ||
s3_version = s3_version[:-6] |
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.
nit:
if s3_version.endswith(":debug"): | |
s3_version = s3_version[:-6] | |
debug_tag = ':debug' | |
if s3_version.endswith(debug_tag): | |
s3_version = s3_version[:-len(debug_tag)] |
also python 3.9 and up, has: https://docs.python.org/3.9/library/stdtypes.html?highlight=removeprefix#str.removesuffix
but we'll need first deprecate 3.8 in ccm, python-driver still support 3.8, so it would need ccm to support it as well.
Following up on 7721ac7 the :debug suffix may end up in s3_version when passed to get_relocatable_s3_url. Signed-off-by: Benny Halevy <[email protected]>
b3c3be7
to
e1cd93a
Compare
|
If |
|
which branch of ccm you faced this ? @cezarmoise has a point. I think you might be using old installed version inside your env try installing ccm like:
|
Hmm, maybe I made a pilot error. |
Following up on 7721ac7 the :debug suffix may end up in s3_version
when passed to get_relocatable_s3_url.