Skip to content
This repository has been archived by the owner on Apr 27, 2021. It is now read-only.

Commit

Permalink
update env var setter signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
kmoe committed Sep 9, 2020
1 parent a0ac7b3 commit e038d3d
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions working_dir.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package tftest
import (
"bytes"
"context"
"errors"
"fmt"
"io/ioutil"
"os"
Expand Down Expand Up @@ -119,8 +120,15 @@ func (wd *WorkingDir) SetConfig(cfg string) error {
return err
}

tf.SetDisablePluginTls(true)
tf.SetSkipProviderVerify(true)
var mismatch *tfexec.ErrVersionMismatch
err = tf.SetDisablePluginTls(true)
if err != nil && !errors.As(err, &mismatch) {
return err
}
err = tf.SetSkipProviderVerify(true)
if err != nil && !errors.As(err, &mismatch) {
return err
}

if p := os.Getenv("TF_ACC_LOG_PATH"); p != "" {
tf.SetLogPath(p)
Expand Down

0 comments on commit e038d3d

Please sign in to comment.