Skip to content

Commit

Permalink
Fix ecs_task_id label to support new ARN format for tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
fredsig committed May 20, 2020
1 parent b543bc0 commit 63c2d4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion discoverecs.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ def get_environment_var(environment, name):
return None

def extract_name(arn):
return arn.split(":")[5].split('/')[1]
return arn.split(":")[5].split('/')[-1]

def extract_task_version(taskDefinitionArn):
return taskDefinitionArn.split(":")[6]
Expand Down

0 comments on commit 63c2d4d

Please sign in to comment.