Make flavorextradata ignore deleted flavors.
In _get_flavor_refs, don't retrieve inactive flavors. Fixes bug 1026210. Change-Id: I7c5d7848d2d1326d01770195e1c8a754bb673a7a
This commit is contained in:
parent
758356c512
commit
153c40ea1a
@ -38,7 +38,7 @@ class FlavorextradataController(wsgi.Controller):
|
||||
def _get_flavor_refs(self):
|
||||
"""Return a dictionary mapping flavorid to flavor_ref."""
|
||||
|
||||
flavor_refs = instance_types.get_all_types(inactive=True)
|
||||
flavor_refs = instance_types.get_all_types()
|
||||
rval = {}
|
||||
for name, obj in flavor_refs.iteritems():
|
||||
rval[obj['flavorid']] = obj
|
||||
|
Loading…
Reference in New Issue
Block a user