From 710b0e86759012559888acd28e8edb64dc32bfc8 Mon Sep 17 00:00:00 2001 From: Shota SAWADA Date: Thu, 27 Dec 2018 16:47:44 +0900 Subject: [PATCH] fix error message of too short new system secret Signed-off-by: Shota SAWADA --- cmd/cli/handler_migrate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/cli/handler_migrate.go b/cmd/cli/handler_migrate.go index e9e9cd3946b..9122d8fd3a2 100644 --- a/cmd/cli/handler_migrate.go +++ b/cmd/cli/handler_migrate.go @@ -122,7 +122,7 @@ func (h *MigrateHandler) MigrateSecret(cmd *cobra.Command, args []string) { } if len(newSecret) < 16 { - cmdx.Fatalf("Value of environment variable NEW_SYSTEM_SECRET has to be at least 16 characters long but got: %d", len(oldSecret)) + cmdx.Fatalf("Value of environment variable NEW_SYSTEM_SECRET has to be at least 16 characters long but got: %d", len(newSecret)) } fmt.Println("Rotating encryption keys for JSON Web Key storage...")