Return a compute name it could be different of compute id

This commit is contained in:
Julien Duponchelle
2016-05-23 11:20:52 +02:00
parent 3e6aec016b
commit f6a3899603
6 changed files with 48 additions and 5 deletions

View File

@ -25,6 +25,10 @@ COMPUTE_CREATE_SCHEMA = {
"description": "Server identifier",
"type": "string"
},
"name": {
"description": "Server name",
"type": "string"
},
"protocol": {
"description": "Server protocol",
"enum": ["http", "https"]
@ -59,6 +63,10 @@ COMPUTE_OBJECT_SCHEMA = {
"description": "Server identifier",
"type": "string"
},
"name": {
"description": "Server name",
"type": "string"
},
"protocol": {
"description": "Server protocol",
"enum": ["http", "https"]
@ -85,5 +93,5 @@ COMPUTE_OBJECT_SCHEMA = {
}
},
"additionalProperties": False,
"required": ["compute_id", "protocol", "host", "port"]
"required": ["compute_id", "protocol", "host", "port", "name"]
}