Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Apr 26, 2023
1 parent 2680650 commit 57fbf25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/ddns-lambda.py
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ def lambda_handler(
instance_id, tag_data['option_name'].hostname, tag_data['option_name'].zonename)
f_hostname = tag_data['option_name'].hostname
f_zonename = tag_data['option_name'].zonename
elif not tag_data['option_name'].valid and len(tag_data['option_name'].hostname) > 0 and tag_data['dhcp_options'].valid:
elif not tag_data['option_name'].valid and tag_data['option_name'].hostname and tag_data['dhcp_options'].valid:
LOGGER.info("2.2 instance: %s, using tag_option.name hostname %s and and dhcp_options zone %s.",
instance_id, tag_data['option_name'].hostname, tag_data['dhcp_options'].zonename)
f_hostname = tag_data['option_name'].hostname
Expand Down

0 comments on commit 57fbf25

Please sign in to comment.