From e6482b8797cc34a024429f5ce9e75e11a139fd3b Mon Sep 17 00:00:00 2001 From: DJ Mountney Date: Wed, 6 May 2020 13:57:01 -0700 Subject: Ensure we are passing the parsed secret Rather than the secret file. The parsing of the file was already done in the gitlab-shell config. This fixes an issue where a recent refactor of the gitlabnet client passed the wrong value. --- internal/gitlabnet/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/gitlabnet/client.go b/internal/gitlabnet/client.go index 923b064..18eac67 100644 --- a/internal/gitlabnet/client.go +++ b/internal/gitlabnet/client.go @@ -21,7 +21,7 @@ func GetClient(config *config.Config) (*client.GitlabNetClient, error) { return nil, fmt.Errorf("Unsupported protocol") } - return client.NewGitlabNetClient(config.HttpSettings.User, config.HttpSettings.Password, config.SecretFilePath, httpClient) + return client.NewGitlabNetClient(config.HttpSettings.User, config.HttpSettings.Password, config.Secret, httpClient) } func ParseJSON(hr *http.Response, response interface{}) error { -- cgit v1.2.1