summaryrefslogtreecommitdiff
path: root/openstackclient/common
diff options
context:
space:
mode:
authorStephen Finucane <sfinucan@redhat.com>2021-10-13 10:18:53 +0100
committerStephen Finucane <sfinucan@redhat.com>2021-10-13 10:30:26 +0100
commit53debe7fe1978f661768a27430f646a288948ecc (patch)
treef38d5054b7e6cd4603eecd9bd2b5f6d4c1257fd6 /openstackclient/common
parente0c61f0cbec5a64b8fd92a90fe9e12ae7cfee58d (diff)
downloadpython-openstackclient-53debe7fe1978f661768a27430f646a288948ecc.tar.gz
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
Diffstat (limited to 'openstackclient/common')
0 files changed, 0 insertions, 0 deletions