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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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