Rename filter and filter_ to qfilter
We currently use 'filter' as the OpCode, QueryRequest and RAPI field name for representing a query filter. However, since 'filter' is a built-in function, we actually have to use filter_ throughout the code in order to not override the built-in function. This patch simply goes and does a global sed over the code. Due to the fact that the RAPI interface already exposed this field, we add compatibility code for now which handles both forms. Signed-off-by:Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
Showing
- htools/Ganeti/Luxi.hs 1 addition, 1 deletionhtools/Ganeti/Luxi.hs
- lib/cli.py 11 additions, 11 deletionslib/cli.py
- lib/cmdlib.py 3 additions, 3 deletionslib/cmdlib.py
- lib/luxi.py 4 additions, 4 deletionslib/luxi.py
- lib/objects.py 1 addition, 1 deletionlib/objects.py
- lib/opcodes.py 2 additions, 2 deletionslib/opcodes.py
- lib/query.py 12 additions, 12 deletionslib/query.py
- lib/rapi/client.py 7 additions, 5 deletionslib/rapi/client.py
- lib/rapi/rlib2.py 8 additions, 3 deletionslib/rapi/rlib2.py
- lib/server/masterd.py 2 additions, 2 deletionslib/server/masterd.py
- lib/watcher/__init__.py 2 additions, 2 deletionslib/watcher/__init__.py
- test/ganeti.cli_unittest.py 8 additions, 8 deletionstest/ganeti.cli_unittest.py
- test/ganeti.qlang_unittest.py 9 additions, 9 deletionstest/ganeti.qlang_unittest.py
- test/ganeti.query_unittest.py 49 additions, 49 deletionstest/ganeti.query_unittest.py
- test/ganeti.rapi.client_unittest.py 6 additions, 6 deletionstest/ganeti.rapi.client_unittest.py
Loading
Please register or sign in to comment