Skip to content

Commit

Permalink
Fix nil pointer deference for image ID with spotinst
Browse files Browse the repository at this point in the history
  • Loading branch information
hakman committed Feb 25, 2021
1 parent 2e4233f commit 1f7ab4a
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 1f7ab4a

Please sign in to comment.