fix: add keystone sync user debug info (#7633)

Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
This commit is contained in:
Jian Qiu
2020-08-26 18:41:34 +08:00
committed by GitHub
co-authored by Qiu Jian
parent 2716d4527d
commit 585ba0ff58
-10
View File
@@ -83,16 +83,6 @@ func (self *SLDAPDriverClass) ValidateConfig(ctx context.Context, userCred mccli
if !unique {
return tconf, errors.Wrapf(httperrors.ErrDuplicateResource, "ldap URL %s has been registered", conf.Url)
}
nconf := make(map[string]jsonutils.JSONObject)
err = confJson.Unmarshal(&nconf)
if err != nil {
return tconf, errors.Wrap(err, "Unmarshal old config")
}
err = jsonutils.Marshal(conf).Unmarshal(&nconf)
if err != nil {
return tconf, errors.Wrap(err, "Unmarshal new config")
}
tconf[api.IdentityDriverLDAP] = nconf
return tconf, nil
}