8000 fix parsing form_type from terraform · coder/terraform-provider-coder@9fc221c · GitHub
[go: up one dir, main page]

Skip to content

Commit 9fc221c

Browse files
committed
fix parsing form_type from terraform
1 parent 19d6749 commit 9fc221c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

provider/parameter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ type Parameter struct {
5151
DisplayName string `mapstructure:"display_name"`
5252
Description string
5353
Type string
54-
FormType ParameterFormType `mapstructure:"form_type"`
54+
FormType ParameterFormType
5555
Mutable bool
5656
Default string
5757
Icon string

provider/parameter_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func TestParameter(t *testing.T) {
2727
name = "region"
2828
display_name = "Region"
2929
type = "string"
30-
form_type = "radio"
30+
form_type = "dropdown"
3131
description = <<-EOT
3232
# Select the machine image
3333
See the [registry](https://container.registry.blah/namespace) for options.
@@ -57,7 +57,7 @@ func TestParameter(t *testing.T) {
5757
"name": "region",
5858
"display_name": "Region",
5959
"type": "string",
60-
"form_type": "radio",
60+
"form_type": "dropdown",
6161
"description": "# Select the machine image\nSee the [registry](https://container.registry.blah/namespace) for options.\n",
6262
"mutable": "true",
6363
"icon": "/icon/region.svg",

0 commit comments

Comments
 (0)
0