Merge "Remove multiple create from stevedore"
This commit is contained in:
commit
ac41395f11
|
@ -17,29 +17,13 @@ from webob import exc
|
|||
|
||||
from nova.api.openstack.compute.schemas import multiple_create as \
|
||||
schema_multiple_create
|
||||
from nova.api.openstack import extensions
|
||||
from nova.i18n import _
|
||||
|
||||
ALIAS = "os-multiple-create"
|
||||
MIN_ATTRIBUTE_NAME = "min_count"
|
||||
MAX_ATTRIBUTE_NAME = "max_count"
|
||||
RRID_ATTRIBUTE_NAME = "return_reservation_id"
|
||||
|
||||
|
||||
class MultipleCreate(extensions.V21APIExtensionBase):
|
||||
"""Allow multiple create in the Create Server v2.1 API."""
|
||||
|
||||
name = "MultipleCreate"
|
||||
alias = ALIAS
|
||||
version = 1
|
||||
|
||||
def get_resources(self):
|
||||
return []
|
||||
|
||||
def get_controller_extensions(self):
|
||||
return []
|
||||
|
||||
|
||||
# NOTE(gmann): This function is not supposed to use 'body_deprecated_param'
|
||||
# parameter as this is placed to handle scheduler_hint extension for V2.1.
|
||||
def server_create(server_dict, create_kwargs, body_deprecated_param):
|
||||
|
|
|
@ -78,7 +78,6 @@ nova.api.v21.extensions =
|
|||
images = nova.api.openstack.compute.images:Images
|
||||
image_metadata = nova.api.openstack.compute.image_metadata:ImageMetadata
|
||||
image_size = nova.api.openstack.compute.image_size:ImageSize
|
||||
multiple_create = nova.api.openstack.compute.multiple_create:MultipleCreate
|
||||
networks = nova.api.openstack.compute.networks:Networks
|
||||
networks_associate = nova.api.openstack.compute.networks_associate:NetworksAssociate
|
||||
remote_consoles = nova.api.openstack.compute.remote_consoles:RemoteConsoles
|
||||
|
|
Loading…
Reference in New Issue