Tidied again

This commit is contained in:
Roy Kaldung 2018-08-03 13:57:59 +02:00
parent c00f316946
commit 8925e50670

View File

@ -107,10 +107,9 @@ _check_http_net_zone() {
} }
}' "$HTTP_NET_AUTHTOKEN" "$domain2check") }' "$HTTP_NET_AUTHTOKEN" "$domain2check")
response="$(_post "$payload" "${HTTP_NET_API}/zoneConfigsFind" "" "POST" "text/json")" response="$(_post "$payload" "${HTTP_NET_API}/zoneConfigsFind" "" "POST" "text/json")"
if _contains "$response" '"totalEntries": 1,' > /dev/null; then if _contains "$response" '"totalEntries": 1,' >/dev/null; then
_debug "Detect $domain2check as a valid DNS zone" _debug "Detect $domain2check as a valid DNS zone"
return 0 return 0
fi fi