Skip to content

Commit

Permalink
Merge pull request #22654 from hashicorp/plugin-pass
Browse files Browse the repository at this point in the history
plugin: Pass TerraformVersion from ConfigureRequest
  • Loading branch information
radeksimko committed Aug 31, 2019
2 parents aa6dca4 + cba55a4 commit c4e508f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugin/grpc_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import (
proto "github.com/hashicorp/terraform/internal/tfplugin5"
"github.com/hashicorp/terraform/plugin/convert"
"github.com/hashicorp/terraform/providers"
"github.com/hashicorp/terraform/version"
"github.com/zclconf/go-cty/cty/msgpack"
"google.golang.org/grpc"
)
Expand Down Expand Up @@ -287,7 +286,7 @@ func (p *GRPCProvider) Configure(r providers.ConfigureRequest) (resp providers.C
}

protoReq := &proto.Configure_Request{
TerraformVersion: version.Version,
TerraformVersion: r.TerraformVersion,
Config: &proto.DynamicValue{
Msgpack: mp,
},
Expand Down

0 comments on commit c4e508f

Please sign in to comment.