From 8a7b84874cf403179c0d54636659ef014d530522 Mon Sep 17 00:00:00 2001 From: badra001 Date: Thu, 27 Apr 2023 20:31:12 -0400 Subject: [PATCH] fix --- code/ddns-lambda.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/code/ddns-lambda.py b/code/ddns-lambda.py index bcf815b..2ecc23f 100755 --- a/code/ddns-lambda.py +++ b/code/ddns-lambda.py @@ -1029,11 +1029,11 @@ def lambda_handler( if state == 'running': try: if not flags['nocname'] and (all(emr_status.is_cluster, emr_status.is_master) or not emr_status.is_cluster): - LOGGER.debug(f"cname_host_name: {cf_hostname} {lineno()}") - LOGGER.debug(f"cname_domain_suffix: {cf_zonename} {lineno()}") - LOGGER.debug(f"cname_domain_suffix_id: {cf_zonename_id} {lineno()}") - LOGGER.debug(f"cname_target: {final_private_dns_name} {lineno()}") - if emr_status.is_cluster: + LOGGER.debug(f"cname_host_name: {cf_hostname} {lineno()}") + LOGGER.debug(f"cname_domain_suffix: {cf_zonename} {lineno()}") + LOGGER.debug(f"cname_domain_suffix_id: {cf_zonename_id} {lineno()}") + LOGGER.debug(f"cname_target: {final_private_dns_name} {lineno()}") + if emr_status.is_cluster: LOGGER.info( f"instance {instance_id}: is_cluster && is_master cluster_id {cluster_id} setting CNAME {cf_hostname} in zone {cf_zonename} {lineno()}")