mirror of https://github.com/kubernetes/kops.git
Merge pull request #10924 from hakman/fix-spotinst-nil-pointer
Fix nil pointer deference for image ID with spotinst
This commit is contained in:
commit
7759c754cb
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue