Fix server schema
image in the server response may be an empty string if the server was provisioned from a volume. Change-Id: I4ec1d5391d373ec1aaba40b0547b06ebc9629ec2
This commit is contained in:
@@ -1529,16 +1529,29 @@ SERVER_SCHEMA: dict[str, Any] = {
|
||||
"readOnly": True,
|
||||
},
|
||||
"image": {
|
||||
"type": "object",
|
||||
"description": "The image property as returned from server.",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"format": "uuid",
|
||||
"description": "The image ID",
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"description": "The image property as returned from server.",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"format": "uuid",
|
||||
"description": "The image ID",
|
||||
},
|
||||
"links": {
|
||||
"description": "Image links",
|
||||
**LINKS_SCHEMA,
|
||||
},
|
||||
"properties": {
|
||||
"type": "object",
|
||||
"x-openstack": {"min-ver": "2.98"},
|
||||
},
|
||||
},
|
||||
"required": ["id"],
|
||||
},
|
||||
"links": {"description": "Image links", **LINKS_SCHEMA},
|
||||
},
|
||||
{"type": "string", "enum": [""]},
|
||||
]
|
||||
},
|
||||
"OS-EXT-SRV-ATTR:instance_name": {
|
||||
"type": "string",
|
||||
|
||||
Reference in New Issue
Block a user