Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bugfix] Fix CLI drops controller URL path when querying logs #1201

Merged
merged 3 commits into from Jun 17, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkg/fission-cli/logdb/influxdb.go
Expand Up @@ -144,7 +144,7 @@ func (influx InfluxDB) query(query influxdbClient.Query) (*influxdbClient.Respon
}
// connect to controller first, then controller will redirect our query command
// to influxdb and proxy back the db response.
queryURL.Path = fmt.Sprintf("/proxy/%s", INFLUXDB)
queryURL.Path = fmt.Sprintf("%s/proxy/%s", queryURL.Path, INFLUXDB)
life1347 marked this conversation as resolved.
Show resolved Hide resolved
req, err := http.NewRequest("POST", queryURL.String(), nil)
life1347 marked this conversation as resolved.
Show resolved Hide resolved
if err != nil {
return nil, err
Expand Down