refine devops not enable log

Signed-off-by: runzexia <runzexia@yunify.com>
This commit is contained in:
runzexia
2019-11-05 13:57:23 +08:00
parent da362aff4e
commit 11ac54639b

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
}