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

ccmlib/scylla_node.py: fix get_env() for non-cassandra nodes #624

Merged
merged 1 commit into from
Nov 7, 2024

Conversation

denesb
Copy link
Contributor

@denesb denesb commented Nov 7, 2024

0ef455c changes get_env() to return empty env for scylla nodes, as the native tools do not need any environment variables, unlike the previous java ones which we are about to drop. This however broke cqlsh, which needs the current environment to work correctly, but returning empty {} as currently happens resets the environment vars.
Fix this by returning a clone of the current env, instead of reseting it.

0ef455c changes get_env() to return
empty env for scylla nodes, as the native tools do not need any
environment variables, unlike the previous java ones which we are about
to drop. This however broke cqlsh, which needs the current environment
to work correctly, but returning empty {} as currently happens resets
the environment vars.
Fix this by returning a clone of the current env, instead of reseting
it.
Copy link
Contributor

@fruch fruch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fruch fruch merged commit 20ca37c into scylladb:next Nov 7, 2024
4 checks passed
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.

2 participants