Merge "Revert "Exit after printing error about RPC config""

This commit is contained in:
Jenkins 2015-01-29 22:56:32 +00:00 committed by Gerrit Code Review
commit b9a7d3b5e4

View File

@ -54,15 +54,13 @@ function check_rpc_backend {
(( rpc_backend_cnt++ )) || true
done
if [ "$rpc_backend_cnt" -gt 1 ]; then
die $LINENO \
"Only one rpc backend may be enabled, " \
"set only one of 'rabbit', 'qpid', 'zeromq' " \
"via ENABLED_SERVICES."
echo "ERROR: only one rpc backend may be enabled,"
echo " set only one of 'rabbit', 'qpid', 'zeromq'"
echo " via ENABLED_SERVICES."
elif [ "$rpc_backend_cnt" == 0 ] && [ "$rpc_needed" == 0 ]; then
die $LINENO \
"at least one rpc backend must be enabled, " \
"set one of 'rabbit', 'qpid', 'zeromq'" \
"via ENABLED_SERVICES."
echo "ERROR: at least one rpc backend must be enabled,"
echo " set one of 'rabbit', 'qpid', 'zeromq'"
echo " via ENABLED_SERVICES."
fi
if is_service_enabled qpid && ! qpid_is_supported; then