diff options
| author | Josh Kearney <josh.kearney@rackspace.com> | 2011-02-17 15:05:19 -0600 |
|---|---|---|
| committer | Josh Kearney <josh.kearney@rackspace.com> | 2011-02-17 15:05:19 -0600 |
| commit | 8da339d53b4039c3a8e5e8a15ccf1434eeda5fa2 (patch) | |
| tree | f3dbd1e4a85f084d4e07476d9e4ec20c2dffc769 | |
| parent | aa53c9476ed37f0a1359413d4a710eb08c997b06 (diff) | |
| download | nova-8da339d53b4039c3a8e5e8a15ccf1434eeda5fa2.tar.gz nova-8da339d53b4039c3a8e5e8a15ccf1434eeda5fa2.tar.xz nova-8da339d53b4039c3a8e5e8a15ccf1434eeda5fa2.zip | |
Fixed unit test
| -rw-r--r-- | nova/virt/xenapi/vm_utils.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nova/virt/xenapi/vm_utils.py b/nova/virt/xenapi/vm_utils.py index 339cecd40..7031f2f82 100644 --- a/nova/virt/xenapi/vm_utils.py +++ b/nova/virt/xenapi/vm_utils.py @@ -141,7 +141,8 @@ class VMHelper(HelperBase): @classmethod def ensure_free_mem(cls, session, instance): - instance_type = instance_types.INSTANCE_TYPES[instance.instance_type] + instance_type = instance_types.get_instance_type( + instance.instance_type) mem = long(instance_type['memory_mb']) * 1024 * 1024 #get free memory from host host = session.get_xenapi_host() |
