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

Commit

Permalink
supply context to Find
Browse files Browse the repository at this point in the history
  • Loading branch information
kmoe committed Sep 9, 2020
1 parent f250c46 commit 6d41a54
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package tftest

import (
"context"
"fmt"
"io/ioutil"
"os"
Expand Down Expand Up @@ -40,7 +41,7 @@ func DiscoverConfig(sourceDir string) (*Config, error) {
default:
finders = append(finders, tfinstall.LookPath(), tfinstall.LatestVersion(tfDir, true))
}
tfExec, err := tfinstall.Find(finders...)
tfExec, err := tfinstall.Find(context.Background(), finders...)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 6d41a54

Please sign in to comment.