Skip to content

Commit

Permalink
pass empty passwordfile, not needed
Browse files Browse the repository at this point in the history
Signed-off-by: Friedrich Gonzalez <friedrichg@gmail.com>
  • Loading branch information
friedrichg committed May 10, 2024
1 parent dafd095 commit 8fa5cb4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/bench/query_runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func newQueryClient(url, tenantName, username, password string) (v1.API, error)
Address: url,
RoundTripper: &httpmiddleware.TenantIDRoundTripper{
TenantName: tenantName,
Next: config_util.NewBasicAuthRoundTripper(username, config_util.Secret(password), "", api.DefaultRoundTripper),
Next: config_util.NewBasicAuthRoundTripper(username, config_util.Secret(password), "", "", api.DefaultRoundTripper),
},
})

Expand Down
2 changes: 1 addition & 1 deletion pkg/commands/analyse_prometheus.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func (cmd *PrometheusAnalyseCommand) run(_ *kingpin.ParseContext) error {

rt := api.DefaultRoundTripper
if cmd.username != "" {
rt = config.NewBasicAuthRoundTripper(cmd.username, config.Secret(cmd.password), "", api.DefaultRoundTripper)
rt = config.NewBasicAuthRoundTripper(cmd.username, config.Secret(cmd.password), "", "", api.DefaultRoundTripper)
}
promClient, err := api.NewClient(api.Config{
Address: cmd.address,
Expand Down

0 comments on commit 8fa5cb4

Please sign in to comment.