Commit fd6992c4 authored by yupengzte's avatar yupengzte

missing argument for Errorf(%v): format reads

parent 24cb1cec
...@@ -216,7 +216,7 @@ func (m *namespacedMetrics) GetForObject(groupKind schema.GroupKind, name string ...@@ -216,7 +216,7 @@ func (m *namespacedMetrics) GetForObject(groupKind schema.GroupKind, name string
} }
if len(res.Items) != 1 { if len(res.Items) != 1 {
return nil, fmt.Errorf("the custom metrics API server returned %v results when we asked for exactly one") return nil, fmt.Errorf("the custom metrics API server returned %v results when we asked for exactly one", len(res.Items))
} }
return &res.Items[0], nil return &res.Items[0], nil
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment