Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

converge exit code on a failed run #365

Closed
stevendborrelli opened this issue Oct 11, 2016 · 0 comments · Fixed by #436
Closed

converge exit code on a failed run #365

stevendborrelli opened this issue Oct 11, 2016 · 0 comments · Fixed by #436
Labels
Milestone

Comments

@stevendborrelli
Copy link
Member

stevendborrelli commented Oct 11, 2016

If a task fails converge will exit with a 0 code. I think we should exit non-zero if any task fails.

example:

task "check" {
  check = "[[ -f  /bad ]]"
  apply = "bad-command"
}
$ converge apply --local test.hcl 
...
Summary: 2 errors, 1 changes

 * root/task.check: root/task.check still has changes after apply
 * root: error in dependency "root/task.check"

$ echo $?
0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant