changed unused fmt statement to be a log statement
This commit is contained in:
@@ -190,7 +190,7 @@ func getBestHosts(list algorithm.HostPriorityList) []string {
|
|||||||
func EqualPriority(_ *api.Pod, podLister algorithm.PodLister, minionLister algorithm.MinionLister) (algorithm.HostPriorityList, error) {
|
func EqualPriority(_ *api.Pod, podLister algorithm.PodLister, minionLister algorithm.MinionLister) (algorithm.HostPriorityList, error) {
|
||||||
nodes, err := minionLister.List()
|
nodes, err := minionLister.List()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Errorf("failed to list nodes: %v", err)
|
glog.Errorf("failed to list nodes: %v", err)
|
||||||
return []algorithm.HostPriority{}, err
|
return []algorithm.HostPriority{}, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user