python-freezerclient/freezerclient
gengchc2 1dae9c1d42 Correct search opt param in SessionList
There are differences between session and other tables(
job, atcion, backup, client):
for example:
--search '{"match": [{"id": "820e30c284fb4d"}]}'
1.It is coversed to '{"match": [{"id": "820e30c284fb4d"}]}'
  in session
2.It is coversed to {'match': [{'_all': '{"match":
  [{"id": "820e30c284fb4d"}]}}]}' in other talbes
It can lead to mistakes:
ERROR freezer-api   File "/opt/stack/freezer-api/freezer_api/
storage/elasticv2.py", line 47, in get_base_search_filter
ERROR freezer-api     match_list = [{"match": m} for m
in search.get('match', [])]
 ERROR freezer-api AttributeError: 'unicode' object
 has no attribute 'get'
Change-Id: Id9b918208caef1f3b6d31e780a951b0ab6f5e98f
2018-11-26 01:21:33 +00:00
..
tests Add freezerclient.client in order to use the python api directly 2018-10-12 02:10:07 -04:00
v1 Correct search opt param in SessionList 2018-11-26 01:21:33 +00:00
v2 Correct search opt param in SessionList 2018-11-26 01:21:33 +00:00
__init__.py Print version information dynamically 2016-12-21 23:01:49 +09:00
client.py Freezerclient use "token" to authentication is not success 2018-10-23 05:59:08 -04:00
exceptions.py Python freezer client 2016-03-18 13:40:01 +00:00
shell.py Remove "--os-identity-api-version" argument 2018-10-19 07:40:41 -04:00
utils.py Freezer command line tool add argument: "--os-backup-api-version" 2018-10-11 03:06:47 -04:00