Add missing scheduler_hints to _optional_create
The scheduler_hints option is missing from server_create rest api.
This patch adds it.
Closes-bug:
@@ -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.
"""
