Skip to content

Commit

Permalink
Merge pull request #170 from cloudpilot-ai/cherry-pick-169-release-0.1
Browse files Browse the repository at this point in the history
Cherry pick PR(169)/fix: get image status even it's expired
  • Loading branch information
jwcesign authored Dec 27, 2024
2 parents 758d15e + eca34fe commit 0ae164e
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 0ae164e

Please sign in to comment.