Fix return from reload

This commit is contained in:
andrewheberle
2018-05-14 10:58:46 +08:00
committed by GitHub
parent 675e2d25d6
commit 08d29a8342

View File

@ -257,10 +257,10 @@ haproxy_deploy() {
eval "${_reload}"
_ret=$?
if [ "${_ret}" != "0" ]; then
_info "Reload successful"
else
_err "Error code ${_ret} during reload"
return ${_ret}
else
_info "Reload successful"
fi
return 0