mirror of https://github.com/minio/minio.git
fix: site replication group updates to set status correctly (#15507)
Fixes: #15486
This commit is contained in:
parent
21bf5b4db7
commit
172e63dbb6
|
@ -1103,6 +1103,9 @@ func (c *SiteReplicationSys) PeerGroupInfoChangeHandler(ctx context.Context, cha
|
|||
_, err = globalIAMSys.SetGroupStatus(ctx, updReq.Group, updReq.Status == madmin.GroupEnabled)
|
||||
} else {
|
||||
_, err = globalIAMSys.AddUsersToGroup(ctx, updReq.Group, updReq.Members)
|
||||
if err == nil && updReq.Status != madmin.GroupEnabled {
|
||||
_, err = globalIAMSys.SetGroupStatus(ctx, updReq.Group, updReq.Status == madmin.GroupEnabled)
|
||||
}
|
||||
}
|
||||
}
|
||||
if err != nil {
|
||||
|
@ -4683,7 +4686,6 @@ func (c *SiteReplicationSys) healGroups(ctx context.Context, objAPI ObjectLayer,
|
|||
continue
|
||||
}
|
||||
peerName := info.Sites[dID].Name
|
||||
|
||||
if err := c.IAMChangeHook(ctx, madmin.SRIAMItem{
|
||||
Type: madmin.SRIAMItemGroupInfo,
|
||||
GroupInfo: &madmin.SRGroupInfo{
|
||||
|
|
Loading…
Reference in New Issue