Skip to content

Commit

Permalink
Fix mutating extant resources not forcing new
Browse files Browse the repository at this point in the history
  • Loading branch information
OJFord committed Feb 22, 2023
1 parent bd09ac0 commit ac1a0bc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/provider/app_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,18 @@ func (ar flyAppResourceType) GetSchema(context.Context) (tfsdk.Schema, diag.Diag
MarkdownDescription: "Name of application",
Required: true,
Type: types.StringType,
PlanModifiers: tfsdk.AttributePlanModifiers{
resource.RequiresReplace(),
},
},
"org": {
Computed: true,
Optional: true,
MarkdownDescription: "Optional org slug to operate upon",
Type: types.StringType,
PlanModifiers: tfsdk.AttributePlanModifiers{
resource.RequiresReplace(),
},
},
"orgid": {
Computed: true,
Expand Down
3 changes: 3 additions & 0 deletions internal/provider/volume_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ func (t flyVolumeResourceType) GetSchema(context.Context) (tfsdk.Schema, diag.Di
MarkdownDescription: "Size of volume in gb",
Required: true,
Type: types.Int64Type,
PlanModifiers: tfsdk.AttributePlanModifiers{
resource.RequiresReplace(),
},
},
"name": {
MarkdownDescription: "name",
Expand Down

0 comments on commit ac1a0bc

Please sign in to comment.