cloud/awscloud: fix nil pointer dereference in maintenance fns
The maintenance pod is crashing when describing the images by tag, most likely something else is failing.
This commit is contained in:
parent
350ad58c31
commit
6ccfc7f818
1 changed files with 4 additions and 1 deletions
|
|
@ -25,7 +25,10 @@ func (a *AWS) DescribeImagesByTag(tagKey, tagValue string) ([]ec2types.Image, er
|
|||
},
|
||||
},
|
||||
)
|
||||
return imgs.Images, err
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return imgs.Images, nil
|
||||
}
|
||||
|
||||
func (a *AWS) RemoveSnapshotAndDeregisterImage(image *ec2types.Image) error {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue