Skip to content

Commit

Permalink
OAS-5111 | remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
lakhansamani committed Sep 6, 2022
1 parent 0f28b60 commit 8ba34bd
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions internal/resource_backup_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -331,13 +331,14 @@ func resourceBackupPolicyUpdate(ctx context.Context, d *schema.ResourceData, m i
policy.Schedule = expandBackupPolicySchedule(d.Get(backupPolicyScheduleFieldName).([]interface{}))
}

// if v, ok := d.GetOk(backupPolicyAdditionalRegionIDs); ok {
// additionalRegionIDs, err := expandAdditionalRegionList(v.([]interface{}))
// if err != nil {
// return diag.FromErr(err)
// }
// policy.AdditionalRegionIds = additionalRegionIDs
// }
if v, ok := d.GetOk(backupPolicyAdditionalRegionIDs); ok {
additionalRegionIDs, err := expandAdditionalRegionList(v.([]interface{}))
if err != nil {
return diag.FromErr(err)
}
policy.AdditionalRegionIds = additionalRegionIDs
}

// Make sure we are sending the right schedule. The coming back schedule can contain invalid
// field items for different schedule. We make sure here that the right one is sent after an
// update. This check can be removed once terraform allows conflict checks for list items.
Expand Down

0 comments on commit 8ba34bd

Please sign in to comment.