Skip to content

Commit

Permalink
Removed Hardcoded value (#3)
Browse files Browse the repository at this point in the history
Removed hard coded value
  • Loading branch information
straubt1 authored May 16, 2021
1 parent 12d6a5e commit f5ada8d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,21 @@ Binaries are created as part of release, check out the [Release Page](https://gi

**MacOs Installation**
```sh
version="0.0.0"
version="0.0.0-dev"
curl -L -o tfx "https://github.com/straubt1/tfx/releases/download/${version}/tfx_darwin_amd64"
chmod +x tfx
```

**Linux Installation**
```sh
version="0.0.0"
version="0.0.0-dev"
curl -L -o tfx "https://github.com/straubt1/tfx/releases/download/${version}/tfx_linux_amd64"
chmod +x tfx
```

**Windows Installation**
```sh
version="0.0.0"
version="0.0.0-dev"
curl -L -o tfx.exe "https://github.com/straubt1/tfx/releases/download/${version}/tfx_windows_amd64"
```

Expand Down
2 changes: 1 addition & 1 deletion cmd/helper_rest.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ func DownloadModule(token string, tfeHostname string, tfeOrganization string, mo
providerName string, moduleVersion string) (string, error) {

tfeClient, ctx := getClientContext()
pmr, err := tfeClient.RegistryModules.Read(ctx, tfeOrganization, "moduleName", providerName)
pmr, err := tfeClient.RegistryModules.Read(ctx, tfeOrganization, moduleName, providerName)
if err != nil || pmr == nil {
return "", errors.New("can't find module")
}
Expand Down

0 comments on commit f5ada8d

Please sign in to comment.