Skip to content

Commit

Permalink
Merge pull request #128 from hootsuite/golang-exec
Browse files Browse the repository at this point in the history
Don't quote -var
  • Loading branch information
lkysow authored Aug 17, 2017
2 parents bb9d265 + cc95d34 commit 2e0e970
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/plan_executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ func (p *PlanExecutor) plan(ctx *CommandContext, repoDir string, project models.

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

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

0 comments on commit 2e0e970

Please sign in to comment.