From e2020996ae1c5645d5a06924d9b2f102501178a0 Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Mon, 19 Jun 2017 16:45:12 +0100 Subject: [PATCH] Remove multiple create from stevedore The stevedore will be removed from the nova API code. And the extension info API already is implemented by a hard-code list. So this multiple create extension entry is useless anymore. Partial-implement-blueprint api-no-more-extensions-pike Change-Id: I57caf68d62393b32f800300d4504dd726c3a37c4 --- nova/api/openstack/compute/multiple_create.py | 16 ---------------- setup.cfg | 1 - 2 files changed, 17 deletions(-) diff --git a/nova/api/openstack/compute/multiple_create.py b/nova/api/openstack/compute/multiple_create.py index 049a6cebd3e2..1fb61804b78b 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 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): diff --git a/setup.cfg b/setup.cfg index b275d1f54a39..b77cd2e3aca8 100644 --- a/setup.cfg +++ b/setup.cfg @@ -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