mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix: domain-config-update rpc method panic
This commit is contained in:
@@ -168,6 +168,9 @@ func (this *DomainManager) DoDomainConfigUpdate(s *mcclient.ClientSession, domai
|
||||
|
||||
config := jsonutils.NewDict()
|
||||
_config, _ := params.Get("config")
|
||||
if _config == nil {
|
||||
_config = jsonutils.NewDict()
|
||||
}
|
||||
_driver, _ := _config.GetString("identity", "driver")
|
||||
|
||||
if _driver == "ldap" {
|
||||
|
||||
Reference in New Issue
Block a user