diff options
| author | Chmouel Boudjnah <chmouel@chmouel.com> | 2010-12-09 20:18:06 +0000 |
|---|---|---|
| committer | Chmouel Boudjnah <chmouel@chmouel.com> | 2010-12-09 20:18:06 +0000 |
| commit | 4c9bf2f01fb712a3af6a9876a175a7a0638bcd59 (patch) | |
| tree | e693012be4b32ca451969bde143ea5137a3b3094 | |
| parent | b35b86c6f415a205b6ce49164cccb2a870c46fcb (diff) | |
| download | nova-4c9bf2f01fb712a3af6a9876a175a7a0638bcd59.tar.gz nova-4c9bf2f01fb712a3af6a9876a175a7a0638bcd59.tar.xz nova-4c9bf2f01fb712a3af6a9876a175a7a0638bcd59.zip | |
import module and not classe directely as per Soren recommendation.
| -rw-r--r-- | nova/compute/instance_types.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/compute/instance_types.py b/nova/compute/instance_types.py index 0e9600c00..6e47170bd 100644 --- a/nova/compute/instance_types.py +++ b/nova/compute/instance_types.py @@ -22,7 +22,7 @@ The built-in instance properties. """ from nova import flags -from nova.exception import ApiError +from nova import exception FLAGS = flags.FLAGS INSTANCE_TYPES = { @@ -38,7 +38,7 @@ def get_by_type(instance_type): if instance_type is None: return FLAGS.default_instance_type if instance_type not in INSTANCE_TYPES: - raise ApiError("Unknown instance type: %s" % instance_type) + raise exception.ApiError("Unknown instance type: %s" % instance_type) return instance_type |
