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()}")