Merge pull request #128 from hootsuite/golang-exec

Don't quote -var
This commit is contained in:
Luke Kysow
2017-08-16 17:31:25 -07:00
committed by GitHub

View File

@@ -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")