Skip to content

Commit 65e5eac

Browse files
authored
Merge pull request #52 from hashicorp/appilon/default-terraform-version
Set default TerraformVersion
2 parents e3e4e2b + 617c369 commit 65e5eac

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

helper/schema/provider.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,11 @@ func (p *Provider) Configure(c *terraform.ResourceConfig) error {
267267
return err
268268
}
269269

270+
if p.TerraformVersion == "" {
271+
// Terraform 0.12 introduced this field to the protocol
272+
// We can therefore assume that if it's unconfigured at this point, it's 0.10 or 0.11
273+
p.TerraformVersion = "0.11+compatible"
274+
}
270275
meta, err := p.ConfigureFunc(data)
271276
if err != nil {
272277
return err

0 commit comments

Comments
 (0)