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 892166f commit 227ebd5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion code/ddns-lambda.py
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,10 @@ def lambda_handler(
f"4.3 instance: {instance_id}, CNAME no valid hostname or zone found, skipping CNAME")
cf_hostname = None
cf_zonename = None
cf_fqdn = create_fqdn(cf_hostname, cf_zonename)
if cf_hostname and cf_zonename:
cf_fqdn = create_fqdn(cf_hostname, cf_zonename)
else:
cf_fqdn = ''

# note this will not continue and set a cname

Expand Down
Binary file modified code/ddns-lambda.zip
Binary file not shown.

0 comments on commit 227ebd5

Please sign in to comment.