Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Feb 24, 2022
1 parent 0e0e464 commit d971cd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 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 = None
REGION = None
VERSION = '0.1.12'
VERSION = '0.1.13'

# Adjust the logging level [logging.INFO, logging.DEBUG, logging.WARNING, etc]
LOGGER.setLevel(logging.DEBUG)
Expand Down Expand Up @@ -1259,7 +1259,7 @@ def get_resource_record(client, zone_id, host_name, hosted_zone_name, record_typ

if len(response) > 0:
rr_set = response['ResourceRecordSets'][0]
if rr_set['Name'] == host_name and rr_set['Type'] = record_type:
if rr_set['Name'] == host_name and rr_set['Type'] == record_type:
value = rr_set['ResourceRecords'][0]['Value']

except ClientError as err:
Expand Down

0 comments on commit d971cd4

Please sign in to comment.