Skip to content

Commit eefe673

Browse files
committed
fix(eip): [119848960] modify eip association
1 parent e697d65 commit eefe673

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

tencentcloud/services/cvm/resource_tc_eip_association.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,6 @@ func resourceTencentCloudEipAssociationRead(d *schema.ResourceData, meta interfa
219219
ctx = context.WithValue(context.TODO(), tccommon.LogIdKey, logId)
220220
vpcService = svcvpc.NewVpcService(meta.(tccommon.ProviderMeta).GetAPIV3Conn())
221221
id = d.Id()
222-
eipAddress *vpc.Address
223222
)
224223

225224
association, err := ParseEipAssociationId(id)
@@ -236,7 +235,6 @@ func resourceTencentCloudEipAssociationRead(d *schema.ResourceData, meta interfa
236235
if eip == nil {
237236
d.SetId("")
238237
}
239-
eipAddress = eip
240238

241239
return nil
242240
})
@@ -254,9 +252,7 @@ func resourceTencentCloudEipAssociationRead(d *schema.ResourceData, meta interfa
254252

255253
_ = d.Set("network_interface_id", association.NetworkInterfaceId)
256254
_ = d.Set("private_ip", association.PrivateIp)
257-
if eipAddress.DedicatedClusterId != nil {
258-
_ = d.Set("cdc_id", eipAddress.DedicatedClusterId)
259-
}
255+
260256
return nil
261257
}
262258

0 commit comments

Comments
 (0)