Project

General

Profile

Bug #20281

Updated by Fran├žois ARMAND about 1 year ago

When we try to querying the list of pending nodes through API, the query seems to be ignored  

 Example: 

 <pre> 
 curl -k    -H "X-API-Token: 6swMZ3Lz2C8P1IDrcU7VrqVn3rezgKF1" -H "Content-Type: application/json" -X GET 'https://192.168.3.2/rudder/api/latest/nodes/pending?where=\[\{"objectType":"node","attribute":"OS","comparator":"eq","value":"Linux"\},\{"objectType":"node","attribute":"nodeHostname","comparator":"regex","value":"node2.*"\}\]' 
 </pre> 

 This always return the full list of nodes, not the list matching the @where@ clause.

Back