Status: Accepted
Owner: [email protected]
CC: [email protected]

New issue 954 by [email protected]: Filter language is inconsistent across Haskell/Python
https://code.google.com/p/ganeti/issues/detail?id=954

I tried to figure out how to use `gnt-job list --filter`. My first try:

   # gnt-job list --filter '["=", "reason", "myreason"]'
Error while parsing query filter: Failed to parse query filter '["=", "reason", "myreason"]': Expected "not" (at char 0), (line:1, col:1)
   ["=", "reason", "myreason"]
   ^
   Expected "not" (at char 0), (line:1, col:1)

`expected "not"` - that's probably not intended.

Further, in `qlang.py` `BuildFilterParser`, the `binopstbl` is inconsistent in a few ways:

- the constants are hardcoded, not using `_constants.py`
- OP_EQUAL is `==` while its Haskell counterpart is `=` (man 7 ganeti specifies `==`) - OP_NOT_EQUAL does not exist in Haskell nor is it translated to `not(equal)`, using it fails

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

Reply via email to