From adc500672f66131235a79090eacee936793a5e9c Mon Sep 17 00:00:00 2001 From: Angira Kekteeva Date: Sun, 26 Dec 2021 23:53:57 +0300 Subject: [PATCH] [#295] authmate: Fix replace in obtain-secret Signed-off-by: Angira Kekteeva --- cmd/authmate/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/authmate/main.go b/cmd/authmate/main.go index bb59f6bc1..ebf7b71a4 100644 --- a/cmd/authmate/main.go +++ b/cmd/authmate/main.go @@ -384,7 +384,7 @@ func obtainSecret() *cli.Command { return cli.Exit(fmt.Sprintf("failed to create owner's private key: %s", err), 4) } - secretAddress := strings.Replace(accessKeyIDFlag, "_", "/", 1) + secretAddress := strings.Replace(accessKeyIDFlag, "0", "/", 1) obtainSecretOptions := &authmate.ObtainSecretOptions{ SecretAddress: secretAddress,