Skip to content

Commit 1ed9883

Browse files
committed
last fixup for form type from tf
1 parent 7aa6a98 commit 1ed9883

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extract/parameter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ func ParameterFromBlock(block *terraform.Block) (*types.Parameter, hcl.Diagnosti
8989
optBlocks := block.GetBlocks("option")
9090

9191
optionType, newFormType, err := provider.ValidateFormType(string(p.Type), len(optBlocks), p.FormType)
92+
var _ = optionType // TODO: Should we enforce this anywhere?
9293
if err != nil {
9394
diags = diags.Append(&hcl.Diagnostic{
9495
Severity: hcl.DiagError,
@@ -100,7 +101,6 @@ func ParameterFromBlock(block *terraform.Block) (*types.Parameter, hcl.Diagnosti
100101
// Parameter cannot be used
101102
p.FormType = provider.ParameterFormTypeError
102103
} else {
103-
p.Type = types.ParameterType(optionType)
104104
p.FormType = newFormType
105105
}
106106

0 commit comments

Comments
 (0)