summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--nova/compute/api.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/nova/compute/api.py b/nova/compute/api.py
index fc18765f6..9c83cfd16 100644
--- a/nova/compute/api.py
+++ b/nova/compute/api.py
@@ -90,8 +90,9 @@ class API(base.Base):
other arguments check out ok."""
# FIXME(kpepple) this needs to be factored for api.py:2065 refactor
- type_data = db.instance_type_get_by_name(context,\
- instance_type)
+ type_data = instance_types.get_instance_type(instance_type)
+ # type_data = db.instance_type_get_by_name(context,\
+ # instance_type)
num_instances = quota.allowed_instances(context, max_count, type_data)
if num_instances < min_count:
pid = context.project_id