Skip to content

Commit

Permalink
Merge pull request #10926 from hakman/automated-cherry-pick-of-#10924…
Browse files Browse the repository at this point in the history
…-upstream-release-1.19

Automated cherry pick of #10924: Fix nil pointer deference for image ID with spotinst
  • Loading branch information
k8s-ci-robot authored Feb 25, 2021
2 parents 2e4233f + 1f7ab4a commit 36883b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion upup/pkg/fi/cloudup/spotinsttasks/launch_spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 36883b5

Please sign in to comment.