Skip to content

Commit 0fb6ae6

Browse files
committed
add
1 parent de48bf4 commit 0fb6ae6

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tencentcloud/services/cfs/resource_tc_cfs_auto_snapshot_policy.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ func ResourceTencentCloudCfsAutoSnapshotPolicy() *schema.Resource {
3232

3333
"policy_name": {
3434
Optional: true,
35+
Computed: true,
3536
Type: schema.TypeString,
3637
Description: "Policy name.",
3738
},
@@ -200,10 +201,8 @@ func resourceTencentCloudCfsAutoSnapshotPolicyUpdate(d *schema.ResourceData, met
200201
}
201202
}
202203

203-
if d.HasChange("policy_name") {
204-
if v, ok := d.GetOk("policy_name"); ok {
205-
request.PolicyName = helper.String(v.(string))
206-
}
204+
if v, ok := d.GetOk("policy_name"); ok {
205+
request.PolicyName = helper.String(v.(string))
207206
}
208207

209208
if d.HasChange("alive_days") {

0 commit comments

Comments
 (0)