Skip to content

Commit

Permalink
add double quotes to txt record
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Feb 24, 2022
1 parent 2c980ba commit ac071bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
5 changes: 3 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.7'
VERSION = '0.1.8'

# Adjust the logging level [logging.INFO, logging.DEBUG, logging.WARNING, etc]
LOGGER.setLevel(logging.DEBUG)
Expand Down Expand Up @@ -616,7 +616,8 @@ def lambda_handler(
})
add_heritage_item_timestamp(heritage, 'create_time')
heritage_value = format_heritage(heritage)
# txt=format_heritage(h)
heritage_value = '"{}"'.format(heritage_value) if len(
heritage_value) else heritage_value

# Create OR Delete the A / PTR Record
if state == 'running':
Expand Down
Binary file modified code/ddns-lambda.zip
Binary file not shown.

0 comments on commit ac071bc

Please sign in to comment.