rkt: use %s instead of %q when interpolating env

Fixes #2686
This commit is contained in:
Michael Schurter 2017-07-05 09:36:17 -07:00
parent 2f7d5d4bf9
commit 8e2e26c607

View file

@ -332,7 +332,7 @@ func (d *RktDriver) Start(ctx *ExecContext, task *structs.Task) (*StartResponse,
// Inject environment variables
for k, v := range ctx.TaskEnv.Map() {
cmdArgs = append(cmdArgs, fmt.Sprintf("--set-env=%v=%q", k, v))
cmdArgs = append(cmdArgs, fmt.Sprintf("--set-env=%s=%s", k, v))
}
// Check if the user has overridden the exec command.