Return a compute name it could be different of compute id

This commit is contained in:
Julien Duponchelle committed 2016-05-23 11:27:47 +02:00
1 parent 3e6aec016b
commit f6a3899603
6 files changed
+48 -5

No files matched your search

+9 -1
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"]
}