-
Notifications
You must be signed in to change notification settings - Fork 41
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
No easy way to detect formatting problems #41
Comments
Thanks for the report! Apologies for the change in behavior here. I did not have test coverage for exit codes so I did not catch this change, but I have started adding test coverage to the frontend so I should be able to specify this behavior and make sure it sticks going forward. I'd like to get your feedback on expectations here. My expectation is in the case of a dupe (not a collision) and To satisfy your case, I can further specify that in the case of a dupe and A collision (same hostname pointing to two different IPs) will always be a hard error because I can't choose the correct IP for you. |
Thanks. It seems reasonable that if If |
@DacheW This should now be fixed in version 0.5.2. Thanks again for the report! |
hostess -n fmt
does not affect exit codes if there is a formatting problem. For example, my hosts file has 2 contrived duplicates:When I run
sudo hostess -n fmt
, it reports:Then,
echo $?
reports 0:I would expect the exit code to be non-zero when there are duplicates to make automation with hostess easier. Non-zero exit codes were working in earlier versions (pre 0.4.0), and as such, our automation scripts have broken.
The text was updated successfully, but these errors were encountered: