From 1f7ab4a35a250ce4dd10c83ea29a617cf304b9d7 Mon Sep 17 00:00:00 2001 From: Ciprian Hacman Date: Thu, 25 Feb 2021 07:51:29 +0200 Subject: [PATCH] Fix nil pointer deference for image ID with spotinst --- upup/pkg/fi/cloudup/spotinsttasks/launch_spec.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upup/pkg/fi/cloudup/spotinsttasks/launch_spec.go b/upup/pkg/fi/cloudup/spotinsttasks/launch_spec.go index 25c387f016f71..e6c42256ce81a 100644 --- a/upup/pkg/fi/cloudup/spotinsttasks/launch_spec.go +++ b/upup/pkg/fi/cloudup/spotinsttasks/launch_spec.go @@ -479,7 +479,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) }