From 49a5e68a17bd183e019627ab9bb3746494e010f5 Mon Sep 17 00:00:00 2001 From: liyingjun Date: Tue, 10 Jan 2017 15:58:27 +0800 Subject: [PATCH] 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 --- openstack_dashboard/api/rest/nova.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openstack_dashboard/api/rest/nova.py b/openstack_dashboard/api/rest/nova.py index 594410ccbb..ed96e2a568 100644 --- a/openstack_dashboard/api/rest/nova.py +++ b/openstack_dashboard/api/rest/nova.py @@ -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. """