Skip to content

Commit

Permalink
Ensure planfile is last arg to apply. Fixes runatlantis#151
Browse files Browse the repository at this point in the history
  • Loading branch information
lkysow committed Sep 28, 2017
1 parent 464cb2f commit 7ee8a37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/apply_executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)}
Expand Down

0 comments on commit 7ee8a37

Please sign in to comment.