Achilleas Tzenetopoulos 5 gadi atpakaļ
vecāks
revīzija
f03d7a4f99

+ 1 - 1
kubernetes-v1.15.4/pkg/scheduler/algorithm/priorities/custom_resource_allocation.go

@@ -119,7 +119,7 @@ func customResourceScorer(nodeName string) int64 {
 	curr_uuid, ok := nodes[nodeName]
 
 	if ok {
-		command := fmt.Sprintf("SELECT ipc from system_metrics where uuid = %s order by time desc limit 1", curr_uuid)
+		command := fmt.Sprintf("SELECT ipc from system_metrics where uuid = '%s' order by time desc limit 1", curr_uuid)
 		q := client.NewQuery(command, "evolve", "")
 		if response, err := c.Query(q); err == nil && response.Error() == nil {
 			klog.Infof("%v", response.Results)