From 533b136fe77bfcc29e5e22d466789ab39bce8c90 Mon Sep 17 00:00:00 2001 From: vishalnayak Date: Wed, 16 Mar 2016 11:39:52 -0400 Subject: [PATCH] Reduce the visibility of setUser --- builtin/credential/userpass/path_users.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builtin/credential/userpass/path_users.go b/builtin/credential/userpass/path_users.go index 80b2d150f..33bf27b25 100644 --- a/builtin/credential/userpass/path_users.go +++ b/builtin/credential/userpass/path_users.go @@ -85,7 +85,7 @@ func (b *backend) user(s logical.Storage, n string) (*UserEntry, error) { return &result, nil } -func (b *backend) SetUser(s logical.Storage, username string, userEntry *UserEntry) error { +func (b *backend) setUser(s logical.Storage, username string, userEntry *UserEntry) error { entry, err := logical.StorageEntryJSON("user/"+username, userEntry) if err != nil { return err @@ -161,7 +161,7 @@ func (b *backend) userCreateUpdate(req *logical.Request, d *framework.FieldData) } } - return nil, b.SetUser(req.Storage, username, userEntry) + return nil, b.setUser(req.Storage, username, userEntry) } func (b *backend) pathUserWrite(