-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Env vars are inserted unquoted #36
Comments
Thanks for reporting. Personally, I'm using something like this at the moment, so I didn't notice: template {
data = <<-EOH
CONSUL_AGENT_URL=http://10.1.0.1:8500
RUST_LOG=info
EOH
destination = "${NOMAD_TASK_DIR}/environment"
change_mode = "noop"
} (by workload reads in the environment from that file before starting the daemon). Note that args = ["-g","'daemon off;'"] I think for |
Yes, pretty sure it allows to execute arbitrary commands as well. I've seen that there are numerous different shell-quoting libraries for Go, so I decided to not make a pull request, but if you have a suggestion, I could work on it. |
This might break existing workarounds in jobs. Fixes bsdpot#36
This might break existing workarounds in jobs. Fixes bsdpot#36
This might break existing workarounds in jobs. Fixes bsdpot#36
The pot driver inserts values from the
env
block unquoted; meaningwill turn into
pot set-env -p mypot -E somevar=blah ; blah ...
, which makes the deployment fail.Workaround for me right now: putting single quotes inside the double quotes to quote the values myself.
The text was updated successfully, but these errors were encountered: