fix wildcard record comparison
Build and Push Container / build-and-push (push) Successful in 20s

This commit is contained in:
2026-08-01 13:39:48 -04:00
parent 60c283457b
commit 5293a6d9a8
+2 -1
View File
@@ -44,7 +44,8 @@ def _get_current_record(hosted_zone_id: str, record: str, record_type: str) -> s
response = client.list_resource_record_sets(HostedZoneId=hosted_zone_id)
record_normalized = record.rstrip(".")
for rrset in response["ResourceRecordSets"]:
if rrset["Name"].rstrip(".") == record_normalized and rrset["Type"] == record_type:
rr_name = rrset["Name"].rstrip(".").replace("\\052", "*")
if rr_name == record_normalized and rrset["Type"] == record_type:
records = rrset.get("ResourceRecords", [])
if records:
value = records[0]["Value"].rstrip(".")