Allow ramdisk_id, kernel_id to be null on schema
Since is possible to create images with no ramdisk_id, kernel_id parameters on glance v1, then the schema-image.json needs to be modified to allow null, string values for both attributes and prevent LP #1447193 to happen with a glance v2 client. Change-Id: I1319a1f6bdb69db90f9be7cf34df62cbd8538969 Closes-Bug: #1516330 Related-Bug: #1447193
This commit is contained in:
parent
15ddfe8fcb
commit
e39d2209a5
@ -1,11 +1,11 @@
|
||||
{
|
||||
"kernel_id": {
|
||||
"type": "string",
|
||||
"type": ["null", "string"],
|
||||
"pattern": "^([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}$",
|
||||
"description": "ID of image stored in Glance that should be used as the kernel when booting an AMI-style image."
|
||||
},
|
||||
"ramdisk_id": {
|
||||
"type": "string",
|
||||
"type": ["null", "string"],
|
||||
"pattern": "^([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}$",
|
||||
"description": "ID of image stored in Glance that should be used as the ramdisk when booting an AMI-style image."
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user