backport of commit 8931e4790b (#20972)

Co-authored-by: akshya96 <87045294+akshya96@users.noreply.github.com>
This commit is contained in:
hc-github-team-secure-vault-core
2023-06-08 14:59:55 -04:00
committed by GitHub
parent c1d41b54f5
commit db851a716e
2 changed files with 8 additions and 2 deletions

3
changelog/20964.txt Normal file
View File

@@ -0,0 +1,3 @@
```release-note:bug
identity: Fixes duplicate groups creation with the same name but unique IDs.
```

View File

@@ -69,8 +69,11 @@ func groupPaths(i *IdentityStore) []*framework.Path {
},
Fields: groupPathFields(),
Callbacks: map[logical.Operation]framework.OperationFunc{
logical.UpdateOperation: i.pathGroupRegister(),
Operations: map[logical.Operation]framework.OperationHandler{
logical.UpdateOperation: &framework.PathOperation{
Callback: i.pathGroupRegister(),
ForwardPerformanceStandby: true,
},
},
HelpSynopsis: strings.TrimSpace(groupHelp["register"][0]),