[Kimchi-devel] [PATCH 2/3] Storage volume upload: Let the 'format' parameter be an empty string

Aline Manera alinefm at linux.vnet.ibm.com
Fri May 29 15:24:45 UTC 2015


When creating a new storage volume for upload, we may not know the
right format for it. So let it empty and then libvirt will update it
accordindly.

Signed-off-by: Aline Manera <alinefm at linux.vnet.ibm.com>
---
 src/kimchi/API.json | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/kimchi/API.json b/src/kimchi/API.json
index b9a41eb..e8da7d9 100644
--- a/src/kimchi/API.json
+++ b/src/kimchi/API.json
@@ -216,7 +216,7 @@
                 "format": {
                     "description": "The format of the volume",
                     "type": "string",
-                    "pattern": "^(bochs|cloop|cow|dmg|qcow|qcow2|qed|raw|vmdk|vpc)$",
+                    "pattern": "^(|bochs|cloop|cow|dmg|qcow|qcow2|qed|raw|vmdk|vpc)$",
                     "error": "KCHVOL0015E"
                 },
                 "url": {
-- 
2.1.0




More information about the Kimchi-devel mailing list