Skip to content

Commit 9da2a63

Browse files
authored
Removing the unnecessary comments (IBM-Cloud#6308)
1 parent 59bfd8b commit 9da2a63

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

ibm/service/cos/resource_ibm_cos_backup_policy.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,7 @@ func ResourceIBMCOSBackupPolicy() *schema.Resource {
4242
Description: "Bucket Crn of the source bucket.",
4343
},
4444
"initial_delete_after_days": {
45-
Type: schema.TypeInt,
46-
// Computed: true, // Computed means it can be set by Terraform but can't be updated by users
47-
// Optional: true,
45+
Type: schema.TypeInt,
4846
Required: true,
4947
ValidateFunc: validate.ValidateAllowedRangeInt(1, 36500),
5048
Description: "Number of days after which the objects inside backup vault should be deleted.",
@@ -197,8 +195,6 @@ func parseBackupPolicyID(id string, info string) (backupPolicy string, err error
197195
}
198196

199197
func resourceCustomSuppressDeleteAfterDaysDiff(diff *schema.ResourceDiff) error {
200-
// oldDaysValue, newDaysValue := diff.GetChange("initial_delete_after_days")
201-
// if newDaysValue != oldDaysValue {
202198
if diff.Id() != "" && diff.HasChange("initial_delete_after_days") {
203199
return fmt.Errorf("[ERROR] `initial_delete_after_days` does not support update operation")
204200
}

0 commit comments

Comments
 (0)