handle error when parse Quantity
Kubernetes-commit: b9d7584c3a838d83c6c8c6e405907bf05addc850
This commit is contained in:
parent
2c81f86bd6
commit
0cf1a18bec
|
@ -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