Merge pull request #227 from infosiftr/verify-depth

Fix "verify" and "depth" which are _not_ boolean values
This commit is contained in:
yosifkit 2017-12-20 12:26:53 -06:00 committed by GitHub
commit 5da2fdf203
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 6 deletions

View File

@ -244,8 +244,11 @@ rabbit_env_config() {
local val="${!var:-}"
local rawVal="$val"
case "$conf" in
verify|fail_if_no_peer_cert|depth|hipe_compile)
[ -n "$val" ] && rawVal='true' || rawVal='false'
fail_if_no_peer_cert|hipe_compile)
case "${val,,}" in
false|no|0|'') rawVal='false' ;;
true|yes|1|*) rawVal='true' ;;
esac
;;
vm_memory_high_watermark) continue ;; # handled separately

View File

@ -244,8 +244,11 @@ rabbit_env_config() {
local val="${!var:-}"
local rawVal="$val"
case "$conf" in
verify|fail_if_no_peer_cert|depth|hipe_compile)
[ -n "$val" ] && rawVal='true' || rawVal='false'
fail_if_no_peer_cert|hipe_compile)
case "${val,,}" in
false|no|0|'') rawVal='false' ;;
true|yes|1|*) rawVal='true' ;;
esac
;;
vm_memory_high_watermark) continue ;; # handled separately

View File

@ -244,8 +244,11 @@ rabbit_env_config() {
local val="${!var:-}"
local rawVal="$val"
case "$conf" in
verify|fail_if_no_peer_cert|depth|hipe_compile)
[ -n "$val" ] && rawVal='true' || rawVal='false'
fail_if_no_peer_cert|hipe_compile)
case "${val,,}" in
false|no|0|'') rawVal='false' ;;
true|yes|1|*) rawVal='true' ;;
esac
;;
vm_memory_high_watermark) continue ;; # handled separately