This commit is contained in:
parent
2a369c4d1b
commit
37a2c76077
1 changed files with 2 additions and 2 deletions
|
@ -198,7 +198,7 @@ while (true); do
|
||||||
fi
|
fi
|
||||||
|
|
||||||
log::info "type=A Checking for stale records..."
|
log::info "type=A Checking for stale records..."
|
||||||
for domain in $(echo "$domain_records" | jq -r ".data[] | select(.type == "A" and .name != "$CLOUD_REGION") | .name"); do
|
for domain in $(echo "$domain_records" | jq -r ".data[] | select(.type == \"A\" and .name != \"$CLOUD_REGION\") | .name"); do
|
||||||
log::info "type=A domain=$domain Checking..."
|
log::info "type=A domain=$domain Checking..."
|
||||||
record_id=$(echo "$domain_records" | jq -r ".data[] | select(.name == \"$domain\") | .id")
|
record_id=$(echo "$domain_records" | jq -r ".data[] | select(.name == \"$domain\") | .id")
|
||||||
record_ip=$(echo "$domain_records" | jq -r ".data[] | select(.name == \"$domain\") | .content")
|
record_ip=$(echo "$domain_records" | jq -r ".data[] | select(.name == \"$domain\") | .content")
|
||||||
|
@ -211,7 +211,7 @@ while (true); do
|
||||||
done
|
done
|
||||||
|
|
||||||
log::info "type=AAAA Checking for stale records..."
|
log::info "type=AAAA Checking for stale records..."
|
||||||
for domain in $(echo "$domain_records" | jq -r ".data[] | select(.type == "AAAA" and .name != "$CLOUD_REGION") | .name"); do
|
for domain in $(echo "$domain_records" | jq -r ".data[] | select(.type == \"AAAA\" and .name != \"$CLOUD_REGION\") | .name"); do
|
||||||
log::info "type=AAAA domain=$domain Checking..."
|
log::info "type=AAAA domain=$domain Checking..."
|
||||||
record_id=$(echo "$domain_records" | jq -r ".data[] | select(.name == \"$domain\") | .id")
|
record_id=$(echo "$domain_records" | jq -r ".data[] | select(.name == \"$domain\") | .id")
|
||||||
record_ip=$(echo "$domain_records" | jq -r ".data[] | select(.name == \"$domain\") | .content")
|
record_ip=$(echo "$domain_records" | jq -r ".data[] | select(.name == \"$domain\") | .content")
|
||||||
|
|
Loading…
Reference in a new issue