We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 695f0c7 commit 04ddb23Copy full SHA for 04ddb23
internal/plugintest/config.go
@@ -5,6 +5,7 @@ import (
5
"fmt"
6
"io/ioutil"
7
"os"
8
+ "strings"
9
10
"github.com/hashicorp/terraform-exec/tfinstall"
11
)
@@ -23,7 +24,7 @@ type Config struct {
23
24
// DiscoverConfig uses environment variables and other means to automatically
25
// discover a reasonable test helper configuration.
26
func DiscoverConfig(sourceDir string) (*Config, error) {
- tfVersion := os.Getenv("TF_ACC_TERRAFORM_VERSION")
27
+ tfVersion := strings.TrimPrefix(os.Getenv("TF_ACC_TERRAFORM_VERSION"), "v")
28
tfPath := os.Getenv("TF_ACC_TERRAFORM_PATH")
29
30
tempDir := os.Getenv("TF_ACC_TEMP_DIR")
0 commit comments