mirror of
https://github.com/hashicorp/vault.git
synced 2026-06-12 18:37:18 -04:00
Update path_role.go (#5820)
This commit is contained in:
parent
767f35e10e
commit
7ab4cc5bda
1 changed files with 1 additions and 1 deletions
|
|
@ -791,7 +791,7 @@ func (b *backend) setRoleEntry(ctx context.Context, s logical.Storage, roleName
|
|||
// a new one is created
|
||||
if previousRoleID != "" && previousRoleID != role.RoleID {
|
||||
if err = b.roleIDEntryDelete(ctx, s, previousRoleID); err != nil {
|
||||
return fmt.Errorf("failed to delete previous role ID index")
|
||||
return errwrap.Wrapf("failed to delete previous role ID index: {{err}}", err)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue