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
This commit is contained in:
liyingjun 2017-01-10 15:58:27 +08:00 committed by Li Yingjun
parent 4639163d67
commit 49a5e68a17

View File

@ -346,7 +346,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()
@ -384,7 +384,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.
"""