Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Apr 24, 2023
1 parent acf7bb8 commit 8dc5160
Show file tree
Hide file tree
Showing 2 changed files 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.0b36'
VERSION = '1.2.0b37'

# Read Env variables
DEBUG_LOG_LEVEL = os.environ.get('DebugLogLevel', 'INFO')
Expand Down Expand Up @@ -828,7 +828,7 @@ def lambda_handler(
tag_data['ptr_entry'].hostname,
tag_data['ptr_entry'].zonename,
'PTR',
final_private_hostname,
create_fqdn(final_private_hostname, final_hosted_zone_name),
# final_private_dns_name
)
append_msg = 'PTR record in zone id: ' + \
Expand Down Expand Up @@ -3127,7 +3127,7 @@ def create_fqdn(host, zone):
:return (str,str): Tuple containing hostname components (may include dot) and domain name for which a PHZ exists. None is returned if not found.
"""

hh = parse_hostname_to_components(name)
hh = parse_hostname_to_components(host)
if hh[1] == '':
hh[1] = zone
fqdn = hh[0] + '.' + hh[1]
Expand Down
Binary file modified code/ddns-lambda.zip
Binary file not shown.

0 comments on commit 8dc5160

Please sign in to comment.