diff options
| author | Alex Meade <alex.meade@rackspace.com> | 2012-05-03 14:29:50 -0400 |
|---|---|---|
| committer | Alex Meade <alex.meade@rackspace.com> | 2012-05-07 10:38:28 -0400 |
| commit | 2f552e957fddcd9e042a09a2d32d32fa564c18e7 (patch) | |
| tree | ba2914fb539f0143e90cb3fbb921cb67623f4762 /nova/compute | |
| parent | eb9e54c1129080ad0f5b569b39dfa09c539f2f11 (diff) | |
Replaces exceptions.Error with NovaException
Fixes bug 817107
Change-Id: I6253e6bbcc44676c587b315fa32afba6459e676a
Diffstat (limited to 'nova/compute')
| -rw-r--r-- | nova/compute/api.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/compute/api.py b/nova/compute/api.py index c5dd1e98a..6c6afa6b3 100644 --- a/nova/compute/api.py +++ b/nova/compute/api.py @@ -128,10 +128,10 @@ class BaseAPI(base.Base): params = {} if not host: if not instance: - raise exception.Error(_("No compute host specified")) + raise exception.NovaException(_("No compute host specified")) host = instance['host'] if not host: - raise exception.Error(_("Unable to find host for " + raise exception.NovaException(_("Unable to find host for " "Instance %s") % instance['uuid']) queue = self.db.queue_get_for(context, FLAGS.compute_topic, host) if instance: |
