feat(influx): trim space on credentials file

pull/16532/head
Johnny Steenbergen 2020-01-16 06:51:13 -08:00 committed by Johnny Steenbergen
parent d753aa4459
commit 19d2e5580a
2 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,7 @@
### Features
1. [16523](https://github.com/influxdata/influxdb/pull/16523): Change influx packages to be CRD compliant
1. [16547](https://github.com/influxdata/influxdb/pull/16547): Allow trailing newline in credentials file and CLI integration
### UI Improvements

View File

@ -211,7 +211,7 @@ func getTokenFromDefaultPath() string {
if err != nil {
return ""
}
return string(b)
return strings.TrimSpace(string(b))
}
func writeTokenToPath(tok, path, dir string) error {