From 3e7aa75d700828a534b666d5a6dc18c101791fea Mon Sep 17 00:00:00 2001 From: vishalnayak Date: Mon, 31 Aug 2015 17:10:55 -0400 Subject: [PATCH] Vault SSH: make Zeroaddress entry Remove method private --- builtin/logical/ssh/path_config_zeroaddress.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builtin/logical/ssh/path_config_zeroaddress.go b/builtin/logical/ssh/path_config_zeroaddress.go index 427ba95c8..63fdebc99 100644 --- a/builtin/logical/ssh/path_config_zeroaddress.go +++ b/builtin/logical/ssh/path_config_zeroaddress.go @@ -126,7 +126,7 @@ func (b *backend) removeZeroAddressRole(s logical.Storage, roleName string) erro return nil } - err = zeroAddressEntry.Remove(roleName) + err = zeroAddressEntry.remove(roleName) if err != nil { return err } @@ -135,7 +135,7 @@ func (b *backend) removeZeroAddressRole(s logical.Storage, roleName string) erro } // Removes a given role from the comma separated string -func (r *zeroAddressRoles) Remove(roleName string) error { +func (r *zeroAddressRoles) remove(roleName string) error { var index int for i, role := range r.Roles { if role == roleName {