Merge "Remove unused function _get_flavor_refs in flavor_access extension"
This commit is contained in:
@@ -70,15 +70,6 @@ class FlavorActionController(wsgi.Controller):
|
||||
if body is None or body == "":
|
||||
raise webob.exc.HTTPBadRequest(explanation=_("No request body"))
|
||||
|
||||
def _get_flavor_refs(self, context):
|
||||
"""Return a dictionary mapping flavorid to flavor_ref."""
|
||||
|
||||
flavors = objects.FlavorList.get_all(context)
|
||||
rval = {}
|
||||
for flavor in flavors:
|
||||
rval[flavor.flavorid] = flavor
|
||||
return rval
|
||||
|
||||
def _extend_flavor(self, flavor_rval, flavor_ref):
|
||||
key = "%s:is_public" % (Flavor_access.alias)
|
||||
flavor_rval[key] = flavor_ref['is_public']
|
||||
|
||||
@@ -67,15 +67,6 @@ class FlavorAccessController(wsgi.Controller):
|
||||
|
||||
class FlavorActionController(wsgi.Controller):
|
||||
"""The flavor access API controller for the OpenStack API."""
|
||||
def _get_flavor_refs(self, context):
|
||||
"""Return a dictionary mapping flavorid to flavor_ref."""
|
||||
|
||||
flavors = objects.FlavorList.get_all(context)
|
||||
rval = {}
|
||||
for flavor in flavors:
|
||||
rval[flavor.flavorid] = flavor
|
||||
return rval
|
||||
|
||||
def _extend_flavor(self, flavor_rval, flavor_ref):
|
||||
key = "%s:is_public" % (FlavorAccess.alias)
|
||||
flavor_rval[key] = flavor_ref['is_public']
|
||||
|
||||
Reference in New Issue
Block a user