Vault SSH: make Zeroaddress entry Remove method private

This commit is contained in:
vishalnayak 2015-08-31 17:10:55 -04:00
parent 9918105404
commit 3e7aa75d70
1 changed files with 2 additions and 2 deletions

View File

@ -126,7 +126,7 @@ func (b *backend) removeZeroAddressRole(s logical.Storage, roleName string) erro
return nil return nil
} }
err = zeroAddressEntry.Remove(roleName) err = zeroAddressEntry.remove(roleName)
if err != nil { if err != nil {
return err 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 // 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 var index int
for i, role := range r.Roles { for i, role := range r.Roles {
if role == roleName { if role == roleName {