Skip to content

Commit 893785b

Browse files
committed
fix: modify cdcid
1 parent 4cc9db2 commit 893785b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builder/tencentcloud/cvm/step_run_instance.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@ func (s *stepRunInstance) Run(ctx context.Context, state multistep.StateBag) mul
6969
}
7070
if s.CdcId != "" {
7171
instanceChargeType = "CDCPAID"
72+
req.DedicatedClusterId = &s.CdcId
7273
}
7374
req.InstanceChargeType = &instanceChargeType
7475
req.ImageId = source_image.ImageId
7576
req.InstanceType = &s.InstanceType
76-
req.DedicatedClusterId = &s.CdcId
7777
// TODO: Add check for system disk size, it should be larger than image system disk size.
7878
req.SystemDisk = &cvm.SystemDisk{
7979
DiskType: &s.DiskType,

0 commit comments

Comments
 (0)