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
|
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 {
|
||||||
|
|
Loading…
Reference in New Issue