diff options
| author | Bilal Akhtar <bilalakhtar@ubuntu.com> | 2011-02-10 10:39:29 +0000 |
|---|---|---|
| committer | Tarmac <> | 2011-02-10 10:39:29 +0000 |
| commit | 5e66cf492f150bfbd01e5983d876192c5b158343 (patch) | |
| tree | 6721073c8eac2dc3f900c05006c8b319ccd9ad80 | |
| parent | 10626fc89e0f842b095b7c5864bb91e762984fbc (diff) | |
| parent | 216822bdda290f964020134599749ebbadc76566 (diff) | |
| download | nova-5e66cf492f150bfbd01e5983d876192c5b158343.tar.gz nova-5e66cf492f150bfbd01e5983d876192c5b158343.tar.xz nova-5e66cf492f150bfbd01e5983d876192c5b158343.zip | |
This branch fixes bug #708347: RunInstances: Invalid instance type gives improper error message
| -rw-r--r-- | Authors | 1 | ||||
| -rw-r--r-- | nova/compute/instance_types.py | 4 |
2 files changed, 3 insertions, 2 deletions
@@ -3,6 +3,7 @@ Anne Gentle <anne@openstack.org> Anthony Young <sleepsonthefloor@gmail.com> Antony Messerli <ant@openstack.org> Armando Migliaccio <Armando.Migliaccio@eu.citrix.com> +Bilal Akhtar <bilalakhtar@ubuntu.com> Chiradeep Vittal <chiradeep@cloud.com> Chmouel Boudjnah <chmouel@chmouel.com> Chris Behrens <cbehrens@codestud.com> diff --git a/nova/compute/instance_types.py b/nova/compute/instance_types.py index 196d6a8df..309313fd0 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 |
