Skip to content

Commit a16ccf4

Browse files
authored
Merge pull request #6198 from lindsayzhou/fix-dns-netzner-error-regexp
fix regex of matching hetzner dns api error responses
2 parents 5c7b1cd + 6c555cb commit a16ccf4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dnsapi/dns_hetzner.sh

100644100755
+1-1
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ _get_root() {
212212
_response_has_error() {
213213
unset _response_error
214214

215-
err_part="$(echo "$response" | _egrep_o '"error":{[^}]*}')"
215+
err_part="$(echo "$response" | _egrep_o '"error":\{[^\}]*\}')"
216216

217217
if [ -n "$err_part" ]; then
218218
err_code=$(echo "$err_part" | _egrep_o '"code":[0-9]+' | cut -d : -f 2)

0 commit comments

Comments
 (0)