diff --git a/code/ddns-lambda.py b/code/ddns-lambda.py index 96c3d01..0d10a9f 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.0b83' +VERSION = '1.2.0b84' # Read Env variables DEBUG_LOG_LEVEL = os.environ.get('DebugLogLevel', 'INFO') @@ -756,14 +756,13 @@ def lambda_handler( f"5.3 instance: {instance_id}, PTR default using current hostname {f_hostname} and current zone {f_zonename}") p_hostname = f_hostname p_zonename = f_zonename - p_fqdn = create_fqdn(final_private_hostname, final_hosted_zone_name) - # note this will not continue and set a cname final_private_hostname = f_hostname if len(f_hostname) > 0 else default_hostname final_hosted_zone_name = f_zonename # final_private_dns_name = '.'.join([f_hostname, f_zonename]) + p_fqdn = create_fqdn(final_private_hostname, final_hosted_zone_name) final_private_dns_name = p_fqdn zone_data_fields = ['name', 'zone_id', 'owner_account', 'is_amazon', 'enabled']