mirror of https://github.com/k3s-io/k3s
changed unused fmt statement to be a log statement
parent
84af5f0dd1
commit
ba87868577
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue