Skip to content

Commit cb0a90e

Browse files
fix
1 parent c4517d5 commit cb0a90e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/cloud/services/ec2/launchtemplate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ func (s *Service) createLaunchTemplateData(scope scope.LaunchTemplateScope, imag
482482
// set the AMI ID
483483
data.ImageId = imageID
484484

485-
data.InstanceMarketOptions = getLaunchTemplateInstanceMarketOptionsRequest(scope.AWSMachinePool.Spec.AWSLaunchTemplate.SpotMarketOptions)
485+
data.InstanceMarketOptions = getLaunchTemplateInstanceMarketOptionsRequest(scope.GetLaunchTemplate().SpotMarketOptions)
486486

487487
// Set up root volume
488488
if lt.RootVolume != nil {

0 commit comments

Comments
 (0)