From 45cecbb427a82568ea25b4d6dbb2ab32518a9a9f Mon Sep 17 00:00:00 2001 From: Matt Riedemann Date: Tue, 26 Mar 2019 11:37:27 -0400 Subject: [PATCH] Fix JsonFilter query hint examples in docs The API reference and part of the scheduler filter docs for the JsonFilter query hint are using invalid json strings in the examples. This fixes both invalid locations using the same json string used in the openstack server create command example in the scheduler admin docs. Change-Id: Iaab8608c7ffa6fbbea40a838dd02d8096f632f7a Closes-Bug: #1821764 --- api-ref/source/parameters.yaml | 2 +- doc/source/admin/configuration/schedulers.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api-ref/source/parameters.yaml b/api-ref/source/parameters.yaml index a3cc0f2deaac..58d2288f4a70 100644 --- a/api-ref/source/parameters.yaml +++ b/api-ref/source/parameters.yaml @@ -5182,7 +5182,7 @@ os:scheduler_hints_query: Schedule the server by using a custom filter in JSON format. For example:: - "query": "[>=,$free_ram_mb,1024]" + "query": "[\">=\",\"$free_ram_mb\",1024]" It is available when ``JsonFilter`` is available on cloud side. in: body diff --git a/doc/source/admin/configuration/schedulers.rst b/doc/source/admin/configuration/schedulers.rst index c48f59277912..ae3fa1cc1f51 100644 --- a/doc/source/admin/configuration/schedulers.rst +++ b/doc/source/admin/configuration/schedulers.rst @@ -601,7 +601,7 @@ With the API, use the ``os:scheduler_hints`` key: "flavorRef": "1" }, "os:scheduler_hints": { - "query": "[>=,$free_ram_mb,1024]" + "query": "[\">=\",\"$free_ram_mb\",1024]" } }