[GH-1240] main: Print keys after init and full server initialization.

Setting MINIO_ACCESS_KEY and MINIO_SECRET_KEY re-writes the values
in config properly, but the init message is not updated.

Fix it by delay printing keys until everything is properly
initialized.
This commit is contained in:
Harshavardhana
2016-03-17 20:00:11 -07:00
parent a729d02c31
commit 72d364cbf2
2 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ func isValidAccessKey(accessKeyID string) bool {
// isValidSecretKey - validate secret key
func isValidSecretKey(secretKeyID string) bool {
regex := regexp.MustCompile("^[a-zA-Z0-9\\-\\.\\_\\~]{40}$")
regex := regexp.MustCompile("^.{40}$")
return regex.MatchString(secretKeyID)
}