Skip to content

Commit

Permalink
fix: get image status even it's expired
Browse files Browse the repository at this point in the history
Signed-off-by: jwcesign <[email protected]>
  • Loading branch information
jwcesign authored and gitautomator[bot] committed Dec 27, 2024
1 parent 758d15e commit eca34fe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/providers/imagefamily/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,9 @@ func (p *DefaultProvider) getImagesWithAlias(k8sVersion string) (Images, error)

func (p *DefaultProvider) getImagesWithID(id string) (Images, error) {
req := &ecs.DescribeImagesRequest{
RegionId: tea.String(p.region),
ImageId: tea.String(id),
RegionId: tea.String(p.region),
ImageId: tea.String(id),
ShowExpired: tea.Bool(true),
}

resp, err := p.ecsClient.DescribeImages(req)
Expand Down

0 comments on commit eca34fe

Please sign in to comment.