From c44009452d6ae8b38684187f9e4231fc0acffd3c Mon Sep 17 00:00:00 2001 From: badra001 Date: Mon, 24 Apr 2023 22:07:24 -0400 Subject: [PATCH] fix --- code/ddns-lambda.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/ddns-lambda.py b/code/ddns-lambda.py index a083201..5e1c313 100755 --- a/code/ddns-lambda.py +++ b/code/ddns-lambda.py @@ -1743,7 +1743,7 @@ def new_get_resource_record(oclient, instance_id, zone_id, host_name, hosted_zon # check if the return value matches the record, if not ignore # if the record isn't there, it returns the list_resource_record_sets returns the next record # if rr_name == (host_name + hosted_zone_name): - if rr_name == fqdn + if rr_name == fqdn: value = rr_set['ResourceRecords'][0]['Value'] LOGGER.debug( f"list_resource_record_sets returned value {value}: {lineno()}")