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

env variables are passed to executable surrounded by quotes #2684

Closed
legeyda opened this issue Jun 3, 2017 · 2 comments
Closed

env variables are passed to executable surrounded by quotes #2684

legeyda opened this issue Jun 3, 2017 · 2 comments

Comments

@legeyda
Copy link

legeyda commented Jun 3, 2017

Nomad version

0.5.6

Operating system and Environment details

Linux localhost.localdomain 3.10.0-514.el7.x86_64 #1 SMP Tue Nov 22 16:42:41 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

Issue

When settings stroke environment variables in job spec file, the values are passed to the executable surrounded by double quotes.

Reproduction steps

  1. Set enviroment variable inside job spec file using interpolation:

    env { CONSUL_HTTP_ADDR = "${NOMAD_IP_app}:8500" }

  2. enter shell inside container and do:

    echo $CONSUL_HTTP_ADDR

  3. the result is surrounded with double quotes

    "10.0.2.15:8500"

while just 10.0.2.15:8500 is desired.

@legeyda
Copy link
Author

legeyda commented Jun 4, 2017

a duplicate of #2686

@legeyda legeyda closed this as completed Jun 4, 2017
@github-actions
Copy link

I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant