@@ -117,9 +117,8 @@ func resourceTencentCloudClbTargetGroupAttachmentCreate(d *schema.ResourceData,
117
117
118
118
targetInfos []* clb.TargetGroupInfo
119
119
instance * clb.LoadBalancer
120
- //listener *clb.Listener
121
- has bool
122
- err error
120
+ has bool
121
+ err error
123
122
)
124
123
if v , ok := d .GetOk ("rule_id" ); ok {
125
124
locationId = v .(string )
@@ -210,7 +209,7 @@ func resourceTencentCloudClbTargetGroupAttachmentRead(d *schema.ResourceData, me
210
209
211
210
ids := strings .Split (id , FILED_SP )
212
211
if len (ids ) != 4 {
213
- return fmt .Errorf ("CLB target group attachment id must contains clb_id, listernrt_id, target_group_id, rule_id " )
212
+ return fmt .Errorf ("CLB target group attachment id is clb_id#listener_id#target_group_id#rule_id(only required for 7 layer CLB) " )
214
213
}
215
214
216
215
has , err := clbService .DescribeAssociateTargetGroups (ctx , ids )
@@ -253,7 +252,7 @@ func resourceTencentCloudClbTargetGroupAttachmentDelete(d *schema.ResourceData,
253
252
254
253
ids := strings .Split (id , FILED_SP )
255
254
if len (ids ) != 4 {
256
- return fmt .Errorf ("CLB target group attachment id must contains clb_id, listernrt_id, target_group_id, rule_id " )
255
+ return fmt .Errorf ("CLB target group attachment id is clb_id#listener_id#target_group_id#rule_id(only required for 7 layer CLB) " )
257
256
}
258
257
259
258
if err := clbService .DisassociateTargetGroups (ctx , ids [0 ], ids [1 ], ids [2 ], ids [3 ]); err != nil {
0 commit comments