Skip to content

Commit

Permalink
修复第一次启动没有 ns 导致前台报错的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
chengyumeng committed Nov 21, 2018
1 parent 73125c6 commit 176263d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backend/controllers/kubernetes/namespace/namespace.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func (c *KubeNamespaceController) Resources() {
}(manager)
}
wg.Wait()
if len(errs) == len(managers) {
if len(errs) == len(managers) && len(errs) > 0 {
c.HandleError(utilerrors.NewAggregate(errs))
return
}
Expand Down Expand Up @@ -152,7 +152,7 @@ func (c *KubeNamespaceController) Statistics() {
}(manager)
}
wg.Wait()
if len(errs) == len(managers) {
if len(errs) == len(managers) && len(errs) > 0 {
c.HandleError(utilerrors.NewAggregate(errs))
return
}
Expand Down

0 comments on commit 176263d

Please sign in to comment.