Skip to content

Commit

Permalink
NewTerraform: Update comment to reflect reality (#243)
Browse files Browse the repository at this point in the history
  • Loading branch information
radeksimko authored Dec 1, 2021
1 parent 8e86829 commit 6d83f4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tfexec/terraform.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ type Terraform struct {
}

// NewTerraform returns a Terraform struct with default values for all fields.
// If a blank execPath is supplied, NewTerraform will attempt to locate an
// appropriate binary on the system PATH.
// If a blank execPath is supplied, NewTerraform will error.
// Use hc-install or output from os.LookPath to get a desirable execPath.
func NewTerraform(workingDir string, execPath string) (*Terraform, error) {
if workingDir == "" {
return nil, fmt.Errorf("Terraform cannot be initialised with empty workdir")
Expand Down

0 comments on commit 6d83f4f

Please sign in to comment.