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:
parent
6b24568f57
commit
1b8b2b9243
|
@ -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.
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue