diff --git a/client/driver/rkt.go b/client/driver/rkt.go index 17c057119..a21ef809b 100644 --- a/client/driver/rkt.go +++ b/client/driver/rkt.go @@ -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.