8000 fix: skip validating unknown versions list · coder/terraform-provider-coderd@d16ab6f · GitHub
[go: up one dir, main page]

Skip to content

Commit d16ab6f

Browse files
committed
fix: skip validating unknown versions list
1 parent 7bbfc7f commit d16ab6f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/provider/template_resource.go

Lines changed: 4 additions & 0 deletions
894
Original file line numberDiff line numberDiff line change
@@ -888,6 +888,10 @@ func (a *activeVersionValidator) MarkdownDescription(context.Context) string {
888888

889889
// ValidateList implements validator.List.
890890
func (a *activeVersionValidator) ValidateList(ctx context.Context, req validator.ListRequest, resp *validator.ListResponse) {
891+
if req.ConfigValue.IsNull() || req.ConfigValue.IsUnknown() {
892+
return
893+
}
+
891895
var data []TemplateVersion
892896
resp.Diagnostics.Append(req.ConfigValue.ElementsAs(ctx, &data, false)...)
893897
if resp.Diagnostics.HasError() {

0 commit comments

Comments
 (0)
0