Skip to content

Commit

Permalink
Make some SWR repository fields not updatable (#1126)
Browse files Browse the repository at this point in the history
Make some SWR repository fields not updatable

Summary of the Pull Request
Add ForceNew to organization and name fields
Follow-up of #1123
PR Checklist

 Refers to: #1123
 Tests added/passed.
 Schema updated.

Acceptance Steps Performed
Resource
=== RUN   TestSwrRepositoryV2_basic
--- PASS: TestSwrRepositoryV2_basic (10.95s)
PASS

Process finished with the exit code 0

Import
=== RUN   TestSwrRepositoryV2_import
--- PASS: TestSwrRepositoryV2_import (12.58s)
PASS

Process finished with the exit code 0

Reviewed-by: Rodion Gyrbu <fpsoff@outlook.com>
Reviewed-by: Anton Sidelnikov <None>
Reviewed-by: None <None>
  • Loading branch information
outcatcher authored Jun 17, 2021
1 parent 84000e5 commit bb18324
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,12 @@ func ResourceSwrRepositoryV2() *schema.Resource {
"organization": {
Type: schema.TypeString,
Required: true,
ForceNew: true,
},
"name": {
Type: schema.TypeString,
Required: true,
ForceNew: true,
ValidateFunc: validation.All(
validation.StringLenBetween(1, 128),
validation.StringMatch(
Expand Down

0 comments on commit bb18324

Please sign in to comment.