Trim \n from password file.

This commit is contained in:
Roman Vynar 2018-08-14 14:40:32 +03:00
parent 7525e87c1a
commit 0f6bf65015
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,9 @@
## Changelog
### Unreleased
* Add `registry_password_file` option to the config file.
### 0.7.2 (2018-07-30)
* Make web root accessible w/o trailing slash when base_path is configured.

View File

@ -96,7 +96,7 @@ func main() {
if err != nil {
panic(err)
}
a.config.Password = string(passwordBytes[:])
a.config.Password = strings.TrimSuffix(string(passwordBytes[:]), "\n")
}
// Init registry API client.