Browse Source
Merge pull request #6198 from lindsayzhou/fix-dns-netzner-error-regexp
fix regex of matching hetzner dns api error responses
pull/6285/head
neil
1 month ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
dnsapi/dns_hetzner.sh
|
|
@ -212,7 +212,7 @@ _get_root() { |
|
|
|
_response_has_error() { |
|
|
|
unset _response_error |
|
|
|
|
|
|
|
err_part="$(echo "$response" | _egrep_o '"error":{[^}]*}')" |
|
|
|
err_part="$(echo "$response" | _egrep_o '"error":\{[^\}]*\}')" |
|
|
|
|
|
|
|
if [ -n "$err_part" ]; then |
|
|
|
err_code=$(echo "$err_part" | _egrep_o '"code":[0-9]+' | cut -d : -f 2) |
|
|
|