-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
multienv Fails if Env Vars Contain , (comma) Character #2765
Comments
multienv
Fails if Env Vars Contain , (comma) Character
multienv
Fails if Env Vars Contain , (comma) Character
Please share your yaml configurations and any related configs/flags. We may not be able to work on this but this will help contributors in the future be able to propose a PR to fix the issue. |
Hello, I'm also seeing similar issue when the environment variable contains single (') or double-quote ("). cat .multienv |
I can confirm this fails. In fact, I've a test case that proves it. I'm actually working on implementing |
of course is ok, we will be happy to review @inkel |
@jamengual thanks, great to hear. Just out of curiosity: any particular reason why |
you must ask @tapaszto , I can't recall the use case. |
See runatlantis#2765 for an issue report. Signed-off-by: Leandro López (inkel) <[email protected]>
See runatlantis#2765 for an issue report. Signed-off-by: Leandro López (inkel) <[email protected]>
See runatlantis#2765 for an issue report. Signed-off-by: Leandro López (inkel) <[email protected]>
* Make code more Go-idiomatic While at it makes it more readable. Signed-off-by: Leandro López (inkel) <[email protected]> * Add internal function to parse multienv step input This new function properly deals with quotes and commas in values. Signed-off-by: Leandro López (inkel) <[email protected]> * Add regression test for multienv output with comma in values See #2765 for an issue report. Signed-off-by: Leandro López (inkel) <[email protected]> * Use parseMultienvLine for parsing multienv steps output Signed-off-by: Leandro López (inkel) <[email protected]> * Add internal function to parse multienv step input This new function properly deals with quotes and commas in values. Signed-off-by: Leandro López (inkel) <[email protected]> --------- Signed-off-by: Leandro López (inkel) <[email protected]> Co-authored-by: PePe Amengual <[email protected]>
* Make code more Go-idiomatic While at it makes it more readable. Signed-off-by: Leandro López (inkel) <[email protected]> * Add internal function to parse multienv step input This new function properly deals with quotes and commas in values. Signed-off-by: Leandro López (inkel) <[email protected]> * Add regression test for multienv output with comma in values See runatlantis#2765 for an issue report. Signed-off-by: Leandro López (inkel) <[email protected]> * Use parseMultienvLine for parsing multienv steps output Signed-off-by: Leandro López (inkel) <[email protected]> * Add internal function to parse multienv step input This new function properly deals with quotes and commas in values. Signed-off-by: Leandro López (inkel) <[email protected]> --------- Signed-off-by: Leandro López (inkel) <[email protected]> Co-authored-by: PePe Amengual <[email protected]>
* Make code more Go-idiomatic While at it makes it more readable. Signed-off-by: Leandro López (inkel) <[email protected]> * Add internal function to parse multienv step input This new function properly deals with quotes and commas in values. Signed-off-by: Leandro López (inkel) <[email protected]> * Add regression test for multienv output with comma in values See runatlantis#2765 for an issue report. Signed-off-by: Leandro López (inkel) <[email protected]> * Use parseMultienvLine for parsing multienv steps output Signed-off-by: Leandro López (inkel) <[email protected]> * Add internal function to parse multienv step input This new function properly deals with quotes and commas in values. Signed-off-by: Leandro López (inkel) <[email protected]> --------- Signed-off-by: Leandro López (inkel) <[email protected]> Co-authored-by: PePe Amengual <[email protected]>
* Make code more Go-idiomatic While at it makes it more readable. Signed-off-by: Leandro López (inkel) <[email protected]> * Add internal function to parse multienv step input This new function properly deals with quotes and commas in values. Signed-off-by: Leandro López (inkel) <[email protected]> * Add regression test for multienv output with comma in values See runatlantis#2765 for an issue report. Signed-off-by: Leandro López (inkel) <[email protected]> * Use parseMultienvLine for parsing multienv steps output Signed-off-by: Leandro López (inkel) <[email protected]> * Add internal function to parse multienv step input This new function properly deals with quotes and commas in values. Signed-off-by: Leandro López (inkel) <[email protected]> --------- Signed-off-by: Leandro López (inkel) <[email protected]> Co-authored-by: PePe Amengual <[email protected]>
Community Note
Overview of the Issue
@austinsherron
Hello, I'm facing similar issue with Env vars added through multienv containing the comma (,) character, the error is the following:
My variables is something like this:
VARIABLE_NAME=hello, world, this, is, not, working
As the variable "VARIABLE_NAME" value contains comma (,) characters, looks like multienv cannot do the job and create the environment variables correctly.
Reproduction Steps
Logs
Environment details
If not already included, please provide the following:
Additional Context
This issue is similar to #2351 , in that case the issue was with equal (=) character, in this new issue reported the problem is with comma (,) character and multienv in the atlantis.yaml file.
The text was updated successfully, but these errors were encountered: