diff options
| author | Ken Pepple <ken.pepple@gmail.com> | 2011-02-10 10:20:33 -0800 |
|---|---|---|
| committer | Ken Pepple <ken.pepple@gmail.com> | 2011-02-10 10:20:33 -0800 |
| commit | 493d4d73ce427a686a674e00a2090d5aaec55a46 (patch) | |
| tree | c69b5ef946b208e4e03c2daac828e000f5fa4c62 /nova/compute | |
| parent | 1a9225d945bdc9b94473c1dd4ad5b9e4b7624571 (diff) | |
| download | nova-493d4d73ce427a686a674e00a2090d5aaec55a46.tar.gz nova-493d4d73ce427a686a674e00a2090d5aaec55a46.tar.xz nova-493d4d73ce427a686a674e00a2090d5aaec55a46.zip | |
refactored api call to use instance_types
Diffstat (limited to 'nova/compute')
| -rw-r--r-- | nova/compute/api.py | 5 |
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 |
