Skip to content

Commit 8d10c30

Browse files
authored
fix some errors when generate crossplane provider (#2650)
1 parent cb5c8cc commit 8d10c30

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

tencentcloud/services/cam/resource_tc_cam_policy_by_name.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ func resourceTencentCloudCamPolicyByNameRead(d *schema.ResourceData, meta interf
182182
return err
183183
}
184184
if len(policies) == 0 {
185+
d.SetId("")
185186
return nil
186187
}
187188
var instance *cam.GetPolicyResponse

tencentcloud/services/ccn/resource_tc_ccn_attachment.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func ResourceTencentCloudCcnAttachment() *schema.Resource {
6060
Optional: true,
6161
ForceNew: true,
6262
Computed: true,
63-
Description: "Uin of the ccn attached. Default is ``, which means the uin of this account. This parameter is used with case when attaching ccn of other account to the instance of this account. For now only support instance type `VPC`.",
63+
Description: "Uin of the ccn attached. If not set, which means the uin of this account. This parameter is used with case when attaching ccn of other account to the instance of this account. For now only support instance type `VPC`.",
6464
},
6565
// Computed values
6666
"state": {

website/docs/r/ccn_attachment.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ The following arguments are supported:
6363
* `instance_id` - (Required, String, ForceNew) ID of instance is attached.
6464
* `instance_region` - (Required, String, ForceNew) The region that the instance locates at.
6565
* `instance_type` - (Required, String, ForceNew) Type of attached instance network, and available values include `VPC`, `DIRECTCONNECT`, `BMVPC` and `VPNGW`. Note: `VPNGW` type is only for whitelist customer now.
66-
* `ccn_uin` - (Optional, String, ForceNew) Uin of the ccn attached. Default is ``, which means the uin of this account. This parameter is used with case when attaching ccn of other account to the instance of this account. For now only support instance type `VPC`.
66+
* `ccn_uin` - (Optional, String, ForceNew) Uin of the ccn attached. If not set, which means the uin of this account. This parameter is used with case when attaching ccn of other account to the instance of this account. For now only support instance type `VPC`.
6767
* `description` - (Optional, String) Remark of attachment.
6868

6969
## Attributes Reference

0 commit comments

Comments
 (0)