Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Apr 28, 2023
1 parent 6ca736a commit cfa4f79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/ddns-lambda.py
Original file line number Diff line number Diff line change
Expand Up @@ -3310,9 +3310,9 @@ def discover_emr_cluster(tags):

LOGGER.info(f"discover_emr tags {tags}")
cluster_tuple = namedtuple('EMRCluster', ['is_cluster', 'is_master', 'cluster_id'])
cluster_id = tags.get('aws:elasticmapreduce:job-flow-id', '')
cluster_id = tags.get('emr:elasticmapreduce:job-flow-id', '')
LOGGER.info(f"discover_emr cluster_id {cluster_id}")
is_master = tags.get('aws:elasticmapreduce:instance-group-role', '') == 'MASTER'
is_master = tags.get('emr:elasticmapreduce:instance-group-role', '') == 'MASTER'
LOGGER.info(f"discover_emr is_master {is_master}")
is_cluster = cluster_id != ''
LOGGER.info(f"discover_emr is_cluster {is_cluster}")
Expand Down

0 comments on commit cfa4f79

Please sign in to comment.