mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-06-03 22:02:12 -04:00
missing argument for Errorf(%v): format reads
Signed-off-by: yupengzte <yu.peng36@zte.com.cn>
This commit is contained in:
parent
24cb1cec64
commit
fd6992c450
1 changed files with 1 additions and 1 deletions
|
|
@ -216,7 +216,7 @@ func (m *namespacedMetrics) GetForObject(groupKind schema.GroupKind, name string
|
|||
}
|
||||
|
||||
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue