Allow site replication config with multiple IDPs (#15361)

Fixes a bug that did not let site replication be configured when
multiple IDPs are configured.
This commit is contained in:
Aditya Manthramurthy 2022-07-21 19:52:23 -07:00 committed by GitHub
parent 7d8c8de827
commit 2393a13f86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -515,7 +515,7 @@ func (r *Config) GetSettings() madmin.OpenIDSettings {
hashedSecret = base64.RawURLEncoding.EncodeToString(bs)
}
if arn != DummyRoleARN {
if res.Roles != nil {
if res.Roles == nil {
res.Roles = make(map[string]madmin.OpenIDProviderSettings)
}
res.Roles[arn.String()] = madmin.OpenIDProviderSettings{