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
1 changed files with 1 additions and 1 deletions

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.