From 6bcda0e997cf2d33d0887d269443a458f3de16d0 Mon Sep 17 00:00:00 2001 From: Eric Fried Date: Thu, 31 Aug 2017 10:27:39 -0500 Subject: [PATCH] [placement] api-ref GET /traits name:startswith In the Placement API reference, the GET /traits [1] query parameter 'name' says it accepts a key called 'starts_with'. The actual API accepts 'startswith' (no underscore). [1] https://developer.openstack.org/api-ref/placement/#list-traits Change-Id: I5a1fa51fc751f2492ae6aa2b38893a9e06a26ed1 Closes-Bug: #1714283 --- placement-api-ref/source/parameters.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/placement-api-ref/source/parameters.yaml b/placement-api-ref/source/parameters.yaml index cbd55e1f9..5afccbeee 100644 --- a/placement-api-ref/source/parameters.yaml +++ b/placement-api-ref/source/parameters.yaml @@ -77,8 +77,8 @@ trait_name_query: description: | A string to filter traits. The following options are available: - `starts_with` operator filters the traits whose name begins with a - specific prefix, e.g. name=starts_with:CUSTOM, + `startswith` operator filters the traits whose name begins with a + specific prefix, e.g. name=startswith:CUSTOM, `in` operator filters the traits whose name is in the specified list, e.g. name=in:HW_CPU_X86_AVX,HW_CPU_X86_SSE,HW_CPU_X86_INVALID_FEATURE.