fix(ingress.tjo.cloud/dyndns): jq
Some checks failed
/ lint (push) Failing after 40s

This commit is contained in:
Tine 2025-01-06 19:00:27 +01:00
parent 2a369c4d1b
commit 37a2c76077
Signed by: mentos1386
SSH key fingerprint: SHA256:MNtTsLbihYaWF8j1fkOHfkKNlnN1JQfxEU/rBU8nCGw

View file

@ -198,7 +198,7 @@ while (true); do
fi
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..."
record_id=$(echo "$domain_records" | jq -r ".data[] | select(.name == \"$domain\") | .id")
record_ip=$(echo "$domain_records" | jq -r ".data[] | select(.name == \"$domain\") | .content")
@ -211,7 +211,7 @@ while (true); do
done
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..."
record_id=$(echo "$domain_records" | jq -r ".data[] | select(.name == \"$domain\") | .id")
record_ip=$(echo "$domain_records" | jq -r ".data[] | select(.name == \"$domain\") | .content")