Skip to content

Commit

Permalink
Merge pull request runatlantis#152 from hootsuite/151-apply-arg-order
Browse files Browse the repository at this point in the history
Ensure planfile is last arg to apply. Fixes runatlantis#151
  • Loading branch information
lkysow authored Sep 28, 2017
2 parents 464cb2f + 7ee8a37 commit 21a8de5
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 21a8de5

Please sign in to comment.