Merge pull request #10924 from hakman/fix-spotinst-nil-pointer

Fix nil pointer deference for image ID with spotinst
This commit is contained in:
Kubernetes Prow Robot 2021-02-25 01:29:26 -08:00 committed by GitHub
commit 7759c754cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -506,7 +506,7 @@ func (_ *LaunchSpec) update(cloud awsup.AWSCloud, a, e, changes *LaunchSpec) err
return err return err
} }
if *actual.ImageID != *image.ImageId { if fi.StringValue(actual.ImageID) != fi.StringValue(image.ImageId) {
spec.SetImageId(image.ImageId) spec.SetImageId(image.ImageId)
} }