Commit 9f6832d6 authored by Boyan Peychev's avatar Boyan Peychev
Browse files

Update dns api to support v2 wildcard cert #1261

parent 5309afc3
......@@ -66,8 +66,8 @@ dns_cloudns_rm() {
return 1
fi
for i in $(echo $response | tr '{' "\n" | grep $record); do
record_id=$(echo $i | tr ',' "\n"| grep -E '^"id"'| sed -re 's/^\"id\"\:\"([0-9]+)\"$/\1/g');
for i in $(echo "$response" | tr '{' "\n" | grep $record); do
record_id=$(echo "$i" | tr ',' "\n" | grep -E '^"id"'| sed -re 's/^\"id\"\:\"([0-9]+)\"$/\1/g')
if [ ! -z "$record_id" ]; then
_debug zone "$zone"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment