summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-06-19 20:22:02 +0000
committerGerrit Code Review <review@openstack.org>2017-06-19 20:22:03 +0000
commitac41395f11002c09e7cd1c4a26632e73bc1bc952 (patch)
tree17c9a56827129751df1c01f71706d23300d9588e
parentfc4e6098579d7584c62c4aaf7bcc0b05571a9a94 (diff)
parente2020996ae1c5645d5a06924d9b2f102501178a0 (diff)
Merge "Remove multiple create from stevedore"
-rw-r--r--nova/api/openstack/compute/multiple_create.py16
-rw-r--r--setup.cfg1
2 files changed, 0 insertions, 17 deletions
diff --git a/nova/api/openstack/compute/multiple_create.py b/nova/api/openstack/compute/multiple_create.py
index 049a6ce..1fb6180 100644
--- a/nova/api/openstack/compute/multiple_create.py
+++ b/nova/api/openstack/compute/multiple_create.py
@@ -17,29 +17,13 @@ from webob import exc
17 17
18from nova.api.openstack.compute.schemas import multiple_create as \ 18from nova.api.openstack.compute.schemas import multiple_create as \
19 schema_multiple_create 19 schema_multiple_create
20from nova.api.openstack import extensions
21from nova.i18n import _ 20from nova.i18n import _
22 21
23ALIAS = "os-multiple-create"
24MIN_ATTRIBUTE_NAME = "min_count" 22MIN_ATTRIBUTE_NAME = "min_count"
25MAX_ATTRIBUTE_NAME = "max_count" 23MAX_ATTRIBUTE_NAME = "max_count"
26RRID_ATTRIBUTE_NAME = "return_reservation_id" 24RRID_ATTRIBUTE_NAME = "return_reservation_id"
27 25
28 26
29class MultipleCreate(extensions.V21APIExtensionBase):
30 """Allow multiple create in the Create Server v2.1 API."""
31
32 name = "MultipleCreate"
33 alias = ALIAS
34 version = 1
35
36 def get_resources(self):
37 return []
38
39 def get_controller_extensions(self):
40 return []
41
42
43# NOTE(gmann): This function is not supposed to use 'body_deprecated_param' 27# NOTE(gmann): This function is not supposed to use 'body_deprecated_param'
44# parameter as this is placed to handle scheduler_hint extension for V2.1. 28# parameter as this is placed to handle scheduler_hint extension for V2.1.
45def server_create(server_dict, create_kwargs, body_deprecated_param): 29def server_create(server_dict, create_kwargs, body_deprecated_param):
diff --git a/setup.cfg b/setup.cfg
index b275d1f..b77cd2e 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -78,7 +78,6 @@ nova.api.v21.extensions =
78 images = nova.api.openstack.compute.images:Images 78 images = nova.api.openstack.compute.images:Images
79 image_metadata = nova.api.openstack.compute.image_metadata:ImageMetadata 79 image_metadata = nova.api.openstack.compute.image_metadata:ImageMetadata
80 image_size = nova.api.openstack.compute.image_size:ImageSize 80 image_size = nova.api.openstack.compute.image_size:ImageSize
81 multiple_create = nova.api.openstack.compute.multiple_create:MultipleCreate
82 networks = nova.api.openstack.compute.networks:Networks 81 networks = nova.api.openstack.compute.networks:Networks
83 networks_associate = nova.api.openstack.compute.networks_associate:NetworksAssociate 82 networks_associate = nova.api.openstack.compute.networks_associate:NetworksAssociate
84 remote_consoles = nova.api.openstack.compute.remote_consoles:RemoteConsoles 83 remote_consoles = nova.api.openstack.compute.remote_consoles:RemoteConsoles