feat(ingress.tjo.cloud): handle any record
Some checks failed
/ lint (push) Failing after 35s

This commit is contained in:
Tine 2025-01-03 20:43:33 +01:00
parent 7a8ab362db
commit 557350425e
Signed by: mentos1386
SSH key fingerprint: SHA256:MNtTsLbihYaWF8j1fkOHfkKNlnN1JQfxEU/rBU8nCGw

View file

@ -99,8 +99,8 @@ configure_many() {
ip=$3 ip=$3
type=$4 type=$4
record_id=$(echo "$domain_records" | jq ".data[] | select(.type == \"$type\" and .name == \"$domain\" and .content = \"$ip\") | .id") record_id=$(echo "$domain_records" | jq ".data[] | select(.type == \"$type\" and .name == \"$domain\" and .content == \"$ip\") | .id")
record_data=$(echo "$domain_records" | jq ".data[] | select(.type == \"$type\" and .name == \"$domain\" and .content = \"$ip\") | .content") record_data=$(echo "$domain_records" | jq ".data[] | select(.type == \"$type\" and .name == \"$domain\" and .content == \"$ip\") | .content")
# re-enable glob expansion # re-enable glob expansion
set +f set +f