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 77ab14d commit b06bb6b
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 @@ -3308,7 +3308,7 @@ def discover_emr_cluster(tags):
:return (bool,str): Tuple containing is_master, is_cluster, and cluster_id if it's a cluster. cluster_id will be empty if not a cluster.
"""

cluster_tuple = namedtuple('EMRCluster', ['cluster', 'master', 'cluster_id'])
cluster_tuple = namedtuple('EMRCluster', ['is_cluster', 'is_master', 'cluster_id'])
cluster_id = tags.get('aws:elasticmapreduce:job-flow-id', '')
is_master = tags.get('aws:elasticmapreduce:instance-group-role', '') == 'MASTER'
is_cluster = cluster_id != ''
Expand Down

0 comments on commit b06bb6b

Please sign in to comment.