From e3d534b2c454ca84e6cc00027c8d4a8d40b494d1 Mon Sep 17 00:00:00 2001 From: Xiaoyu Zhang Date: Fri, 31 Mar 2017 10:17:19 +0800 Subject: [PATCH] Fix a type Fix a type --- plugin/pkg/scheduler/algorithm/predicates/predicates.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/pkg/scheduler/algorithm/predicates/predicates.go b/plugin/pkg/scheduler/algorithm/predicates/predicates.go index d255374d91a..0e0af32c17f 100644 --- a/plugin/pkg/scheduler/algorithm/predicates/predicates.go +++ b/plugin/pkg/scheduler/algorithm/predicates/predicates.go @@ -251,7 +251,7 @@ func (c *MaxPDVolumeCountChecker) filterVolumes(volumes []v1.Volume, namespace s if err != nil { // if the PV is not found, log the error // and count the PV towards the PV limit - // generate a random volume ID since its required for de-dup + // generate a random volume ID since it is required for de-dup utilruntime.HandleError(fmt.Errorf("Unable to look up PV info for %s/%s/%s, assuming PV matches predicate when counting limits: %v", namespace, pvcName, pvName, err)) source := rand.NewSource(time.Now().UnixNano()) generatedID := "missingPV" + strconv.Itoa(rand.New(source).Intn(1000000))