From b446ee2c3922e190c67acd711a6dc18b1f9d1048 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 6f49c200c1c30..cfa262b3d4872 100644 --- a/upup/pkg/fi/cloudup/spotinsttasks/launch_spec.go +++ b/upup/pkg/fi/cloudup/spotinsttasks/launch_spec.go @@ -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) }