Adding additional fields for openid configuration (#1132)
Signed-off-by: Lenin Alevski <alevsk.8772@gmail.com>
This commit is contained in:
@@ -169,7 +169,11 @@ func setConfigWithARNAccountID(ctx context.Context, client MinioAdmin, configNam
|
||||
func buildConfig(configName *string, kvs []*models.ConfigurationKV) *string {
|
||||
configElements := []string{*configName}
|
||||
for _, kv := range kvs {
|
||||
configElements = append(configElements, fmt.Sprintf("%s=%s", kv.Key, kv.Value))
|
||||
key := kv.Key
|
||||
val := fmt.Sprintf("\"%s\"", kv.Value)
|
||||
if key != "" {
|
||||
configElements = append(configElements, fmt.Sprintf("%s=%s", key, val))
|
||||
}
|
||||
}
|
||||
config := strings.Join(configElements, " ")
|
||||
return &config
|
||||
|
||||
Reference in New Issue
Block a user