1
0
mirror of https://github.com/kubernetes-sigs/descheduler.git synced 2026-01-28 14:41:10 +01:00

Fix to not process empty node list and also fix error reporting in other places.

Also fix unit test panic and if nodeLister is nil and refactor some code.
This commit is contained in:
Avesh Agarwal
2017-11-10 13:07:07 -05:00
parent e02857e00a
commit 7d079813e5
4 changed files with 28 additions and 14 deletions

View File

@@ -19,12 +19,12 @@ package app
import (
"flag"
"fmt"
"io"
"github.com/kubernetes-incubator/descheduler/cmd/descheduler/app/options"
"github.com/kubernetes-incubator/descheduler/pkg/descheduler"
"github.com/golang/glog"
"github.com/spf13/cobra"
aflag "k8s.io/apiserver/pkg/util/flag"
@@ -43,7 +43,7 @@ func NewDeschedulerCommand(out io.Writer) *cobra.Command {
defer logs.FlushLogs()
err := Run(s)
if err != nil {
fmt.Println(err)
glog.Errorf("%v", err)
}
},
}