Merge "Make comparisons case insensitive"
This commit is contained in:
commit
2d4beb0903
@ -39,7 +39,7 @@ function ping_controller_ips() {
|
||||
fi
|
||||
for LOCAL_NETWORK in $networks; do
|
||||
in_network=$($(get_python) -c "import ipaddress; net=ipaddress.ip_network(u'$LOCAL_NETWORK'); addr=ipaddress.ip_address(u'$REMOTE_IP'); print(addr in net)")
|
||||
if [[ $in_network == "True" ]]; then
|
||||
if [[ "${in_network,,}" == "true" ]]; then
|
||||
echo "Trying to ping $REMOTE_IP for local network ${LOCAL_NETWORK}."
|
||||
set +e
|
||||
if ! ping_retry $REMOTE_IP; then
|
||||
@ -125,15 +125,15 @@ function ntp_check() {
|
||||
fi
|
||||
}
|
||||
|
||||
if [[ $validate_gateways_icmp == "True" ]];then
|
||||
if [[ "${validate_gateways_icmp,,}" == "true" ]];then
|
||||
ping_default_gateways
|
||||
fi
|
||||
if [[ $validate_controllers_icmp == "True" ]];then
|
||||
if [[ "${validate_controllers_icmp,,}" == "true" ]];then
|
||||
ping_controller_ips $(echo "$ping_test_ips" | jq -r ".$tripleo_role_name")
|
||||
fi
|
||||
if [[ $validate_fqdn == "True" ]];then
|
||||
if [[ "${validate_fqdn,,}" == "true" ]];then
|
||||
fqdn_check
|
||||
fi
|
||||
if [[ $validate_ntp == "True" ]];then
|
||||
if [[ "${validate_ntp,,}" == "true" ]];then
|
||||
ntp_check
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user