Do not add comments after migration (#8530)

Also filter out empty comments from being
printed.
This commit is contained in:
Harshavardhana
2019-11-16 14:57:36 -08:00
committed by GitHub
parent a8e156d6a5
commit 13a3d17321
12 changed files with 29 additions and 44 deletions
-1
View File
@@ -26,7 +26,6 @@ func SetIdentityLDAP(s config.Config, ldapArgs Config) {
}
s[config.IdentityLDAPSubSys][config.Default] = config.KVS{
config.State: config.StateOn,
config.Comment: "Settings for LDAP, after migrating config",
ServerAddr: ldapArgs.ServerAddr,
STSExpiry: ldapArgs.STSExpiryDuration,
UsernameFormat: ldapArgs.UsernameFormat,
+4 -5
View File
@@ -30,10 +30,9 @@ func SetIdentityOpenID(s config.Config, cfg Config) {
return
}
s[config.IdentityOpenIDSubSys][config.Default] = config.KVS{
config.State: config.StateOn,
config.Comment: "Settings for OpenID, after migrating config",
JwksURL: cfg.JWKS.URL.String(),
ConfigURL: "",
ClaimPrefix: "",
config.State: config.StateOn,
JwksURL: cfg.JWKS.URL.String(),
ConfigURL: "",
ClaimPrefix: "",
}
}