Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Apr 29, 2023
1 parent 04fa566 commit 14ec411
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 @@ -1036,7 +1036,7 @@ def lambda_handler(

# create CNAME record in private zone
if state == 'running':
if not flags['nocname'] cf_zonename_id and (all([emr_status.is_cluster, emr_status.is_master]) or not emr_status.is_cluster):
if not flags['nocname'] and cf_zonename_id and (all([emr_status.is_cluster, emr_status.is_master]) or not emr_status.is_cluster):
try:
LOGGER.debug(f"cname_host_name: {cf_hostname} {lineno()}")
LOGGER.debug(f"cname_domain_suffix: {cf_zonename} {lineno()}")
Expand Down

0 comments on commit 14ec411

Please sign in to comment.