Merge pull request #1356 from runzexia/refine-devops-not-enable-log

refine devops not enable log
This commit is contained in:
KubeSphere CI Bot
2019-11-05 14:46:59 +08:00
committed by GitHub

View File

@@ -43,6 +43,10 @@ func ListDevopsProjects(workspace, username string, conditions *params.Condition
dbconn, err := cs.ClientSets().MySQL()
if err != nil {
if _, ok := err.(cs.ClientSetNotEnabledError); ok {
klog.V(4).Info("devops client is not enable")
return nil, err
}
klog.Error(err)
return nil, err
}