diff --git a/server/apply_executor.go b/server/apply_executor.go index b83c42529c..decf041c3a 100644 --- a/server/apply_executor.go +++ b/server/apply_executor.go @@ -145,7 +145,7 @@ func (a *ApplyExecutor) apply(ctx *CommandContext, repoDir string, plan models.P } } - tfApplyCmd := append(append([]string{"apply", "-no-color", plan.LocalPath}, applyExtraArgs...), ctx.Command.Flags...) + tfApplyCmd := append(append(append([]string{"apply", "-no-color"}, applyExtraArgs...), ctx.Command.Flags...), plan.LocalPath) output, err := a.terraform.RunCommandWithVersion(ctx.Log, absolutePath, tfApplyCmd, terraformVersion, tfEnv) if err != nil { return ProjectResult{Error: fmt.Errorf("%s\n%s", err.Error(), output)}