Skip to content

Commit

Permalink
provision: filter out ECS images from recommendations (#640)
Browse files Browse the repository at this point in the history
  • Loading branch information
bobheadxi committed Mar 5, 2020
1 parent 9c8cc3c commit 61ac3a1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions provision/ec2.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,14 @@ func (p *EC2Provisioner) ListImageOptions(region string) ([]string, error) {
}
// Ignore nameless images
if image.Name != nil {
// Rudimentary filter to remove ECS images - see https://github.com/ubclaunchpad/inertia/issues/633
if strings.Contains(*image.ImageId, "ECS") || strings.Contains(*image.Description, "ECS") {
continue
}

images = append(images, fmt.Sprintf("%s (%s)", *image.ImageId, *image.Description))
}

}
return images, nil
}
Expand Down

0 comments on commit 61ac3a1

Please sign in to comment.