Duplicate groups creation bug (#20964)

* fix duplicate groups creation

* add changelog
This commit is contained in:
akshya96
2023-06-02 14:02:09 -07:00
committed by GitHub
parent 3dbdee528a
commit 8931e4790b
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]),