From e6fb07fa9f6102f5ca3f4e873024a025136c2729 Mon Sep 17 00:00:00 2001 From: badra001 Date: Wed, 26 Apr 2023 15:55:26 -0400 Subject: [PATCH] fix --- code/ddns-lambda.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/ddns-lambda.py b/code/ddns-lambda.py index b2af36a..51e530e 100755 --- a/code/ddns-lambda.py +++ b/code/ddns-lambda.py @@ -73,7 +73,7 @@ LOGGER = logging.getLogger() account_id = None region = None -VERSION = '1.2.0b63' +VERSION = '1.2.0b64' # Read Env variables DEBUG_LOG_LEVEL = os.environ.get('DebugLogLevel', 'INFO') @@ -892,10 +892,10 @@ def lambda_handler( if not flags['noforward']: heritage_records = {} for entry in dns_data: - if entry.rr_type == 'TXT' and entry.rr_value.startswith('heritage='): + if entry.rr_type == 'TXT' and "heritage=" in entry.rr_value: heritage_records[entry.rr_name] = entry.rr_value for entry in dns_data: - if not (entry.rr_type == 'TXT' and entry.rr_value.startswith('heritage=')): + if not (entry.rr_type == 'TXT' and "heritage=" in entry.rr_value): process_response = new_process_delete_records( instance_id, entry.zone_id, entry.rr_name, entry.zone_name, entry.rr_type, entry.rr_value, heritage_records.get(entry.rr_name, ''))