Fix nil pointer deference for image ID with spotinst

This commit is contained in:
Ciprian Hacman 2021-02-25 07:51:29 +02:00
parent 1b42286cfe
commit 365f73f9c4
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
}
if *actual.ImageID != *image.ImageId {
if fi.StringValue(actual.ImageID) != fi.StringValue(image.ImageId) {
spec.SetImageId(image.ImageId)
}