-
Notifications
You must be signed in to change notification settings - Fork 210
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
Fix chef-server-ctl backup always returning 1 #537
Conversation
I'm 👍 on just merging; however, if you have a few minutes, here are some things I had questions about:
|
|
||
status = ChefBackup::Runner.new(running_config).backup | ||
exit(status ? 0 : 1) | ||
exit(0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the way omnibus-ctl works you can just 'return 0' , and above 'return 1'. That will be used as the exit code.
@stevendanna to the best of my recollection, all of the omnibus-ctl error output (except wrapped chef runs) go to stdout. |
6123bc2
to
7072d77
Compare
@stevendanna All error output now goes through STDERR and we only rescue on the foreign code. |
Thanks for the updates, 👍 from me. Will merge at EOD if there are no objections |
…up always returning 1
7072d77
to
0eab119
Compare
Fix chef-server-ctl backup always returning 1
Fixes #534
http://wilson.ci.chef.co/job/chef-server-12-trigger-ad_hoc/721/downstreambuildview/