diff options
author | DJ Mountney <dj@gitlab.com> | 2020-05-06 13:57:01 -0700 |
---|---|---|
committer | DJ Mountney <dj@gitlab.com> | 2020-05-06 13:57:01 -0700 |
commit | e6482b8797cc34a024429f5ce9e75e11a139fd3b (patch) | |
tree | 1feeb7b1a929687488607451660bbf04bff973ec | |
parent | accd5e5abd03d9f08ca72068e5dafb2df090c7e3 (diff) | |
download | gitlab-shell-e6482b8797cc34a024429f5ce9e75e11a139fd3b.tar.gz |
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.
-rw-r--r-- | internal/gitlabnet/client.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |