diff options
| author | Bilal Akhtar <bilalakhtar@ubuntu.com> | 2011-02-09 11:34:23 +0300 |
|---|---|---|
| committer | Bilal Akhtar <bilalakhtar@ubuntu.com> | 2011-02-09 11:34:23 +0300 |
| commit | d5501234cfc434fbb4b959b63822598a1a68b88b (patch) | |
| tree | 2cd5432071267b148b194bc17c667395896b7042 /nova | |
| parent | 7c78d71eba66b64f2a2cac0309dcd01f2acf8b4d (diff) | |
| download | nova-d5501234cfc434fbb4b959b63822598a1a68b88b.tar.gz nova-d5501234cfc434fbb4b959b63822598a1a68b88b.tar.xz nova-d5501234cfc434fbb4b959b63822598a1a68b88b.zip | |
Give a better error message if the instance type specified is invalid.
Diffstat (limited to 'nova')
| -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 196d6a8df..510bfd99e 100644 --- a/nova/compute/instance_types.py +++ b/nova/compute/instance_types.py @@ -38,8 +38,8 @@ def get_by_type(instance_type): if instance_type is None: return FLAGS.default_instance_type if instance_type not in INSTANCE_TYPES: - raise exception.ApiError(_("Unknown instance type: %s"), - instance_type) + raise exception.ApiError(_("Unknown instance type: %s") % (instance_type), + "Invalid") return instance_type |
