From f5ada8d491f992ada3543f52515a2254c3a67be4 Mon Sep 17 00:00:00 2001 From: Tom Straub Date: Sun, 16 May 2021 15:42:38 -0500 Subject: [PATCH] Removed Hardcoded value (#3) Removed hard coded value --- README.md | 6 +++--- cmd/helper_rest.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 5dc9e3b..1d830f2 100644 --- a/README.md +++ b/README.md @@ -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" ``` diff --git a/cmd/helper_rest.go b/cmd/helper_rest.go index 556cf96..1f68cc5 100644 --- a/cmd/helper_rest.go +++ b/cmd/helper_rest.go @@ -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") }