From 4152a2ebad10accbe8e6c0c45e34d9f829417821 Mon Sep 17 00:00:00 2001 From: bsimon Date: Fri, 8 Mar 2024 14:09:36 +0100 Subject: [PATCH] Fixed lint issues on go code + markdown --- bastion/client.go | 4 ++-- docs/index.md | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/bastion/client.go b/bastion/client.go index ed58b29..3b01082 100644 --- a/bastion/client.go +++ b/bastion/client.go @@ -53,8 +53,8 @@ func (c *Client) newRequest(ctx context.Context, uri string, method string, json req.Header.Add("X-Auth-User", c.bastionUser) } else { rawcreds := c.bastionUser + ":" + c.bastionPwd - encoded_creds := base64.StdEncoding.EncodeToString([]byte(rawcreds)) - req.Header.Add("Authorization", "Basic "+encoded_creds) + encodedcreds := base64.StdEncoding.EncodeToString([]byte(rawcreds)) + req.Header.Add("Authorization", "Basic "+encodedcreds) } if err != nil { return "", http.StatusInternalServerError, fmt.Errorf("preparing http request: %w", err) diff --git a/docs/index.md b/docs/index.md index 1d1f108..12ec003 100644 --- a/docs/index.md +++ b/docs/index.md @@ -25,7 +25,6 @@ The following arguments are supported in the `provider` block: This is the password used to authenticate against Bastion API. It can also be sourced from the `WALLIX_BASTION_PASSWORD`environment variable. - - **api_version** (Optional) This is the version of api used to call api. It can also be sourced from the `WALLIX_BASTION_API_VERSION` environment variable. @@ -33,4 +32,4 @@ The following arguments are supported in the `provider` block: - You have to specify either the API key **OR** the user/password couple. The latter is the recommanded authentication method. Create a dedicated account in the Bastion with the - needed permissions according to which resources you plan to use. \ No newline at end of file + needed permissions according to which resources you plan to use.