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

Bug fix:Env File Feature would not accept = in value #2487

Merged
merged 1 commit into from
Jun 20, 2020

Conversation

ubhattacharjya
Copy link
Contributor

Summary

This pull request fixes a bug where env file feature would not accept "=", which is the delimiter in the values of a env var.
VARIABLE=abc=h would get truncated to VARIABLE=abc

Implementation details

Changed the method strings.Split(line, "=") to strings.SplitN(line, "=", 2)

Testing

Tested that the env var is correctly getting its value after this change

New tests cover the changes:

Description for the changelog

Licensing

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Copy link
Contributor

@sharanyad sharanyad left a comment

Choose a reason for hiding this comment

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

change lgtm, could you add a test case for this?

@ubhattacharjya ubhattacharjya force-pushed the BugFixEnvFile branch 2 times, most recently from fc812da to 0e26ddb Compare June 19, 2020 19:59
@ubhattacharjya
Copy link
Contributor Author

change lgtm, could you add a test case for this?

Added test.

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.

4 participants