From 153c40ea1a026de17872c907ea543ea80bf5a074 Mon Sep 17 00:00:00 2001 From: David Besen Date: Wed, 18 Jul 2012 16:27:27 -0600 Subject: [PATCH] Make flavorextradata ignore deleted flavors. In _get_flavor_refs, don't retrieve inactive flavors. Fixes bug 1026210. Change-Id: I7c5d7848d2d1326d01770195e1c8a754bb673a7a --- nova/api/openstack/compute/contrib/flavorextradata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nova/api/openstack/compute/contrib/flavorextradata.py b/nova/api/openstack/compute/contrib/flavorextradata.py index d507348179e5..5a6558ad0d7f 100644 --- a/nova/api/openstack/compute/contrib/flavorextradata.py +++ b/nova/api/openstack/compute/contrib/flavorextradata.py @@ -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