Skip to content

Commit 2e0e970

Browse files
authored
Merge pull request #128 from hootsuite/golang-exec
Don't quote -var
2 parents bb9d265 + cc95d34 commit 2e0e970

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/plan_executor.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ func (p *PlanExecutor) plan(ctx *CommandContext, repoDir string, project models.
148148

149149
// Run terraform plan
150150
planFile := filepath.Join(repoDir, project.Path, fmt.Sprintf("%s.tfplan", tfEnv))
151-
tfPlanCmd := append([]string{"plan", "-refresh", "-no-color", "-out", planFile, "-var", fmt.Sprintf("'%s=%s'", atlantisUserTFVar, ctx.User.Username)}, planExtraArgs...)
151+
tfPlanCmd := append([]string{"plan", "-refresh", "-no-color", "-out", planFile, "-var", fmt.Sprintf("%s=%s", atlantisUserTFVar, ctx.User.Username)}, planExtraArgs...)
152152

153153
// check if env/{environment}.tfvars exist
154154
tfEnvFileName := filepath.Join("env", tfEnv+".tfvars")

0 commit comments

Comments
 (0)