Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Apr 27, 2023
1 parent 2cff92e commit e9aa4bb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 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.0b83'
VERSION = '1.2.0b84'

# Read Env variables
DEBUG_LOG_LEVEL = os.environ.get('DebugLogLevel', 'INFO')
Expand Down Expand Up @@ -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']
Expand Down

0 comments on commit e9aa4bb

Please sign in to comment.