mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-01 10:48:15 +00:00
Fix struct input test in jsonpath
This commit is contained in:
@@ -217,7 +217,7 @@ func (j *JSONPath) evalArray(input []reflect.Value, node *ArrayNode) ([]reflect.
|
||||
|
||||
value, isNil := template.Indirect(value)
|
||||
if isNil || (value.Kind() != reflect.Array && value.Kind() != reflect.Slice) {
|
||||
return input, fmt.Errorf("%v is not array or slice", value)
|
||||
return input, fmt.Errorf("%v is not array or slice", value.Type())
|
||||
}
|
||||
params := node.Params
|
||||
if !params[0].Known {
|
||||
|
||||
Reference in New Issue
Block a user