Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Apr 26, 2023
1 parent f66cb0d commit e6fb07f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/ddns-lambda.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down Expand Up @@ -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, ''))

Expand Down

0 comments on commit e6fb07f

Please sign in to comment.