Vault SSH: make Zeroaddress entry Remove method private
This commit is contained in:
parent
9918105404
commit
3e7aa75d70
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue