openstack-python-openstackc.../openstackclient
Stephen Finucane 3f4142d5dd compute: Fix filtering servers by tags
The nova API expects the 'tags' and 'not-tags' filters of the 'GET
/servers' (list servers) API to be a CSV string [1]:

  tags (Optional)
    A list of tags to filter the server list by. Servers that match all
    tags in this list will be returned. Boolean expression in this case
    is 't1 AND t2'. Tags in query must be separated by comma.

    New in version 2.26

  not-tags (Optional)
    A list of tags to filter the server list by. Servers that don’t
    match all tags in this list will be returned. Boolean expression in
    this case is 'NOT (t1 AND t2)'. Tags in query must be separated by
    comma.

    New in version 2.26

We were instead providing a Python list, which was simply being URL
encoded. Correct this.

[1] https://docs.openstack.org/api-ref/compute/?expanded=list-servers-detail#list-servers

Change-Id: Ie0251a0dccdf3385089e5bbaedf646a5e928cc48
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
Closes-Bug: #1946816
(cherry picked from commit 53debe7fe1)
(cherry picked from commit cbc64f9469)
2021-10-13 12:51:28 +01:00
..
api Remove usage of six 2020-10-07 02:15:25 +00:00
common project cleanup 2021-02-02 08:14:34 +00:00
compute compute: Fix filtering servers by tags 2021-10-13 12:51:28 +01:00
identity Merge "Add name and enabled param in ListDomain parser" 2020-12-22 13:30:59 +00:00
image Merge "image: Unset properties rather than setting to None" 2021-01-06 11:16:25 +00:00
locale/tr_TR/LC_MESSAGES Imported Translations from Zanata 2018-03-01 07:25:50 +00:00
network network: Add missing subnet unset --gateway <subnet-id> 2021-03-05 14:15:20 +00:00
object Add storage policy option to create container command 2020-02-19 10:08:48 +13:00
tests compute: Fix filtering servers by tags 2021-10-13 12:51:28 +01:00
volume Allow to resize in-use volumes 2020-11-11 09:18:49 +00:00
__init__.py Clean up W503 and E402 pep8 errors 2018-04-15 12:23:06 +09:00
i18n.py Remove log translations 2017-03-21 17:23:09 +08:00
shell.py Remove usage of six 2020-10-07 02:15:25 +00:00