Skip to content

Commit edc6ee2

Browse files
committed
exclude archs from refresh
1 parent 70469b2 commit edc6ee2

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

internal/provider/resource_tfe_opa_version.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ import (
1818
"github.com/hashicorp/terraform-plugin-framework/resource"
1919
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
2020
"github.com/hashicorp/terraform-plugin-framework/resource/schema/booldefault"
21+
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
22+
"github.com/hashicorp/terraform-plugin-framework/resource/schema/setplanmodifier"
2123
"github.com/hashicorp/terraform-plugin-framework/types"
2224
"github.com/hashicorp/terraform-plugin-log/tflog"
2325
)
@@ -110,8 +112,9 @@ func (r *OPAVersionResource) Schema(ctx context.Context, req resource.SchemaRequ
110112
},
111113
},
112114
},
113-
Computed: true,
114-
Optional: true,
115+
Computed: true,
116+
Optional: true,
117+
PlanModifiers: []planmodifier.Set{setplanmodifier.UseStateForUnknown()},
115118
},
116119
},
117120
}

internal/provider/resource_tfe_sentinel_version.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ import (
1313
"github.com/hashicorp/terraform-plugin-framework/resource"
1414
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
1515
"github.com/hashicorp/terraform-plugin-framework/resource/schema/booldefault"
16+
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
17+
"github.com/hashicorp/terraform-plugin-framework/resource/schema/setplanmodifier"
1618
"github.com/hashicorp/terraform-plugin-framework/types"
1719
"github.com/hashicorp/terraform-plugin-log/tflog"
1820
)
@@ -105,8 +107,9 @@ func (r *sentinelVersionResource) Schema(ctx context.Context, req resource.Schem
105107
},
106108
},
107109
},
108-
Computed: true,
109-
Optional: true,
110+
Computed: true,
111+
Optional: true,
112+
PlanModifiers: []planmodifier.Set{setplanmodifier.UseStateForUnknown()},
110113
},
111114
},
112115
}

internal/provider/resource_tfe_terraform_version.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ import (
1919
"github.com/hashicorp/terraform-plugin-framework/resource"
2020
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
2121
"github.com/hashicorp/terraform-plugin-framework/resource/schema/booldefault"
22+
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
23+
"github.com/hashicorp/terraform-plugin-framework/resource/schema/setplanmodifier"
2224
"github.com/hashicorp/terraform-plugin-framework/types"
2325
"github.com/hashicorp/terraform-plugin-log/tflog"
2426
)
@@ -111,8 +113,9 @@ func (r *terraformVersionResource) Schema(ctx context.Context, req resource.Sche
111113
},
112114
},
113115
},
114-
Computed: true,
115-
Optional: true,
116+
Computed: true,
117+
Optional: true,
118+
PlanModifiers: []planmodifier.Set{setplanmodifier.UseStateForUnknown()},
116119
},
117120
},
118121
}

0 commit comments

Comments
 (0)