From 6b16e93adce695d608aa794e20f3013ac4b9b3e4 Mon Sep 17 00:00:00 2001 From: Calvin Leung Huang Date: Thu, 23 Apr 2020 12:04:12 -0700 Subject: [PATCH] userpass: fix upgrade value for token_bound_cidrs --- builtin/credential/userpass/path_users.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/credential/userpass/path_users.go b/builtin/credential/userpass/path_users.go index 1c43e97d2d7fa..c6b0514efd517 100644 --- a/builtin/credential/userpass/path_users.go +++ b/builtin/credential/userpass/path_users.go @@ -231,7 +231,7 @@ func (b *backend) userCreateUpdate(ctx context.Context, req *logical.Request, d return logical.ErrorResponse(err.Error()), nil } - if err := tokenutil.UpgradeValue(d, "bound_cidrs", "token_bound_cirs", &userEntry.BoundCIDRs, &userEntry.TokenBoundCIDRs); err != nil { + if err := tokenutil.UpgradeValue(d, "bound_cidrs", "token_bound_cidrs", &userEntry.BoundCIDRs, &userEntry.TokenBoundCIDRs); err != nil { return logical.ErrorResponse(err.Error()), nil } }