From 05d3b46137fe12ad583e6b0703b7a51477cbe267 Mon Sep 17 00:00:00 2001 From: hejunli <18438695326@163.com> Date: Thu, 30 Dec 2021 19:47:28 +0800 Subject: [PATCH] Let the code in the json file be displayed https://docs.openstack.org/sahara/latest/user/edp.html cannot show the code clear, this patch fix that issue. Change-Id: Ie4f8add7e464c454c41d6c4084ec64d6b7cca3ee (cherry picked from commit e9e50bede6bf68adb434b7ad57e8dac164acd6ea) (cherry picked from commit 9726af036820630be1b838d149be41f2fe809992) --- doc/source/user/edp.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/source/user/edp.rst b/doc/source/user/edp.rst index a67a325203..4e27e6287c 100644 --- a/doc/source/user/edp.rst +++ b/doc/source/user/edp.rst @@ -332,7 +332,7 @@ A "Description" field may also be added to each interface argument. To create such an interface via the REST API, provide an "interface" argument, the value of which consists of a list of JSON objects, as below: -.. sourcecode:: json +.. code-block:: [ { @@ -349,7 +349,7 @@ the value of which consists of a list of JSON objects, as below: Creating this interface would allow you to specify a configuration for any execution of the job template by passing an "interface" map similar to: -.. sourcecode:: json +.. code-block:: { "Rows": "1000000", @@ -361,7 +361,7 @@ The specified arguments would be automatically placed into the args, configs, and params for the job, according to the mapping type and location fields of each interface argument. The final ``job_configs`` map would be: -.. sourcecode:: json +.. code-block:: { "job_configs": {