Skip to content

Commit

Permalink
remove terraform path discovery code
Browse files Browse the repository at this point in the history
  • Loading branch information
kmoe committed Jul 6, 2020
1 parent 2442a83 commit 20a25b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 31 deletions.
27 changes: 0 additions & 27 deletions tfexec/main.go

This file was deleted.

6 changes: 2 additions & 4 deletions tfexec/terraform.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,8 @@ func NewTerraform(workingDir string, execPath string) (*Terraform, error) {
}

if execPath == "" {
execPath, err = FindTerraform()
if err != nil {
return nil, &ErrNoSuitableBinary{err: err}
}
err := fmt.Errorf("NewTerraform: please supply the path to a Terraform executable using execPath, e.g. using the tfinstall package.")
return nil, &ErrNoSuitableBinary{err: err}

}
tf := Terraform{
Expand Down

0 comments on commit 20a25b1

Please sign in to comment.