Add missing scheduler_hints to _optional_create

The scheduler_hints option is missing from server_create rest api.
This patch adds it.

Change-Id: Iab587abecbfd73fec8e966ca86cdde7242c80207
Closes-bug: #1655255
(cherry picked from commit 49a5e68a17)
This commit is contained in:
liyingjun 2017-01-10 15:58:27 +08:00 committed by Rob Cresswell
parent 6b24568f57
commit 1b8b2b9243
1 changed files with 2 additions and 2 deletions

View File

@ -348,7 +348,7 @@ class Servers(generic.View):
_optional_create = [
'block_device_mapping', 'block_device_mapping_v2', 'nics', 'meta',
'availability_zone', 'instance_count', 'admin_pass', 'disk_config',
'config_drive'
'config_drive', 'scheduler_hints'
]
@rest_utils.ajax()
@ -386,7 +386,7 @@ class Servers(generic.View):
Other parameters are accepted as per the underlying novaclient:
"block_device_mapping", "block_device_mapping_v2", "nics", "meta",
"availability_zone", "instance_count", "admin_pass", "disk_config",
"config_drive"
"config_drive", "scheduler_hints"
This returns the new server object on success.
"""