parent
1c9423ef31
commit
05ec3922f1
|
@ -140,7 +140,7 @@ _get_root() {
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
_debug "Querying Linode APIv4 for subdomain: $h"
|
_debug "Querying Linode APIv4 for hosted zone: $h"
|
||||||
if _H4="X-Filter: {\"domain\":\"$h\"}" _rest GET; then
|
if _H4="X-Filter: {\"domain\":\"$h\"}" _rest GET; then
|
||||||
_debug "Got response from API: $response"
|
_debug "Got response from API: $response"
|
||||||
response="$(echo "$response" | tr -d "\n" | tr '{' "|" | sed 's/|/&{/g' | tr "|" "\n")"
|
response="$(echo "$response" | tr -d "\n" | tr '{' "|" | sed 's/|/&{/g' | tr "|" "\n")"
|
||||||
|
|
Loading…
Reference in New Issue