mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 04:33:26 +00:00
handle error when parse Quantity
This commit is contained in:
parent
a73f45dd96
commit
b9d7584c3a
@ -277,7 +277,7 @@ func isLess(i, j reflect.Value) (bool, error) {
|
||||
if err != nil {
|
||||
return sortorder.NaturalLess(itype, jtype), nil
|
||||
}
|
||||
jtypeQuantity, _ := resource.ParseQuantity(jtype)
|
||||
jtypeQuantity, err := resource.ParseQuantity(jtype)
|
||||
if err != nil {
|
||||
return sortorder.NaturalLess(itype, jtype), nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user