Skip to content

Commit

Permalink
Merge pull request #2 from saulius/bugfix/ignore_fargate_launch_type
Browse files Browse the repository at this point in the history
Ignore Fargate instances
  • Loading branch information
Frederico Marques authored Sep 8, 2018
2 parents 9426fa7 + 3404a68 commit e4935c1
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 @@ -194,7 +194,7 @@ def fetcher(ids):
t.ec2_instance = dict_get(instances, t.container_instance['ec2InstanceId'], None)

def get_infos_for_cluster(self, cluster_arn):
tasks_pages = self.ecs_client.get_paginator('list_tasks').paginate(cluster=cluster_arn)
tasks_pages = self.ecs_client.get_paginator('list_tasks').paginate(cluster=cluster_arn, launchType='EC2')
task_infos = []
for task_arns in tasks_pages:
if task_arns['taskArns']:
Expand Down

0 comments on commit e4935c1

Please sign in to comment.