Skip to content

Commit

Permalink
Add TypeStringBoolean equivalence from hashicorp#5632
Browse files Browse the repository at this point in the history
  • Loading branch information
bjwschaap committed Aug 31, 2018
1 parent 99b3255 commit eeb04c6
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions aws/resource_aws_launch_template.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,13 +159,14 @@ func resourceAwsLaunchTemplate() *schema.Resource {
},

"ebs_optimized": {
Type: schema.TypeString,
Optional: true,
ValidateFunc: validation.StringInSlice([]string{
"",
"false",
"true",
}, false),
// Use TypeString to allow an "unspecified" value,
// since TypeBool only has true/false with false default.
// The conversion from bare true/false values in
// configurations to TypeString value is currently safe.
Type: schema.TypeString,
Optional: true,
DiffSuppressFunc: suppressEquivalentTypeStringBoolean,
ValidateFunc: validateTypeStringNullableBoolean,
},

"elastic_gpu_specifications": {
Expand Down

0 comments on commit eeb04c6

Please sign in to comment.