Update path_role.go (#5820)
This commit is contained in:
parent
610fe599c2
commit
0c6793d774
|
@ -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 New Issue