Skip to content

Commit 5104c52

Browse files
committed
fixup default usage
1 parent dd15cc7 commit 5104c52

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

types/parameter.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ type ParameterOption struct {
9595

9696
func (r *ParameterData) Valid(value HCLString) hcl.Diagnostics {
9797
var defPtr *string
98-
if !r.DefaultValue.Value.IsNull() {
98+
99+
if r.DefaultValue.Valid() && r.DefaultValue.IsKnown() {
99100
def := r.DefaultValue.Value.AsString()
100101
defPtr = &def
101102
}

0 commit comments

Comments
 (0)