From c7691c7d44e1e82a2bf0e32b946873d53a6b3700 Mon Sep 17 00:00:00 2001 From: badra001 Date: Thu, 27 Apr 2023 14:42:05 -0400 Subject: [PATCH] fix --- code/ddns-lambda.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/ddns-lambda.py b/code/ddns-lambda.py index 1845793..aa9715c 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.0b80' +VERSION = '1.2.0b81' # Read Env variables DEBUG_LOG_LEVEL = os.environ.get('DebugLogLevel', 'INFO') @@ -3216,7 +3216,7 @@ def parse_hostname_to_components(name): domain = '.'.join(names[i:]) + '.' if phz_collection_by_vpc.get(domain): return (True, host, domain) - host = name[0] + host = names[0] domain = '.'.join(names[1:]) + '.' LOGGER.info( f"No PHZ found for any domain components of {name} associated with this vpc, returing host {host} domain {domain}: {lineno()}")