From ab29dccead9c36f2007220777fc8546fe12030b3 Mon Sep 17 00:00:00 2001 From: Kyrylo Romanenko Date: Mon, 3 Jul 2017 19:23:01 +0300 Subject: [PATCH] Fix quotes in documentation and schema description Fix example of RAID configuration by removing wrong quotes. Add missing quote in RAID config schema description. Closes-Bug: #1702129 Change-Id: I2012e3968a0fccec0df1f4de3f682ab97aa1b8ac --- .../source/samples/driver-logical-disk-properties-response.json | 2 +- doc/source/deploy/raid.rst | 2 +- ironic/drivers/raid_config_schema.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api-ref/source/samples/driver-logical-disk-properties-response.json b/api-ref/source/samples/driver-logical-disk-properties-response.json index deda03f52c..35bae97a29 100644 --- a/api-ref/source/samples/driver-logical-disk-properties-response.json +++ b/api-ref/source/samples/driver-logical-disk-properties-response.json @@ -5,7 +5,7 @@ "is_root_volume": "Specifies whether this disk is a root volume. By default, this is False. Optional.", "number_of_physical_disks": "Number of physical disks to use for this logical disk. By default, the driver uses the minimum number of disks required for that RAID level. Optional.", "physical_disks": "The physical disks to use for this logical disk. If not specified, the driver will choose suitable physical disks to use. Optional.", - "raid_level": "RAID level for the logical disk. Valid values are 'JBOD', 0', '1', '2', '5', '6', '1+0', '5+0' and '6+0'. Required.", + "raid_level": "RAID level for the logical disk. Valid values are 'JBOD', '0', '1', '2', '5', '6', '1+0', '5+0' and '6+0'. Required.", "share_physical_disks": "Specifies whether other logical disks can share physical disks with this logical disk. By default, this is False. Optional.", "size_gb": "Size in GiB (Integer) for the logical disk. Use 'MAX' as size_gb if this logical disk is supposed to use the rest of the space available. Required.", "volume_name": "Name of the volume to be created. If this is not specified, it will be auto-generated. Optional." diff --git a/doc/source/deploy/raid.rst b/doc/source/deploy/raid.rst index bc81d405cf..826846d5ca 100644 --- a/doc/source/deploy/raid.rst +++ b/doc/source/deploy/raid.rst @@ -172,7 +172,7 @@ HDD:: "disk_type": "ssd" }, { - "size_gb": "500", + "size_gb": 500, "raid_level": "1", "disk_type": "hdd" } diff --git a/ironic/drivers/raid_config_schema.json b/ironic/drivers/raid_config_schema.json index bdfb3a0126..c7e62357d0 100644 --- a/ironic/drivers/raid_config_schema.json +++ b/ironic/drivers/raid_config_schema.json @@ -10,7 +10,7 @@ "raid_level": { "type": "string", "enum": [ "JBOD", "0", "1", "2", "5", "6", "1+0", "5+0", "6+0" ], - "description": "RAID level for the logical disk. Valid values are 'JBOD', 0', '1', '2', '5', '6', '1+0', '5+0' and '6+0'. Required." + "description": "RAID level for the logical disk. Valid values are 'JBOD', '0', '1', '2', '5', '6', '1+0', '5+0' and '6+0'. Required." }, "size_gb": { "anyOf": [{