|
|
|
@ -115,8 +115,7 @@ _dns_cloudns_get_zone_name() {
|
|
|
|
|
zoneForCheck=$(printf "%s" "$1" | cut -d . -f $i-100)
|
|
|
|
|
|
|
|
|
|
if [ -z "$zoneForCheck" ]; then
|
|
|
|
|
# missing zone
|
|
|
|
|
return 1;
|
|
|
|
|
return 1
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
_debug zoneForCheck $zoneForCheck
|
|
|
|
@ -125,12 +124,12 @@ _dns_cloudns_get_zone_name() {
|
|
|
|
|
|
|
|
|
|
if ! _contains "$response" "\"status\":\"Failed\""; then
|
|
|
|
|
echo $zoneForCheck
|
|
|
|
|
return 0;
|
|
|
|
|
return 0
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
i=$(expr $i + 1)
|
|
|
|
|
done
|
|
|
|
|
return 1;
|
|
|
|
|
return 1
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
_dns_cloudns_get_record_id () {
|
|
|
|
@ -154,5 +153,5 @@ _dns_cloudns_http_api_call () {
|
|
|
|
|
|
|
|
|
|
_debug response "$response"
|
|
|
|
|
|
|
|
|
|
return 1;
|
|
|
|
|
return 1
|
|
|
|
|
}
|