diff options
author | Jenkins <jenkins@review.openstack.org> | 2013-02-26 14:19:45 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2013-02-26 14:19:45 +0000 |
commit | a8fef8e5103973d8b9747bca3784c98e4075e454 (patch) | |
tree | 69ad04860bd0801aa14c0522ee3d8f16d63b46a4 | |
parent | 7170eb3966d4a38878e46353414579804fa987e9 (diff) | |
parent | 785861e30e8fd483dd4b81a24721c39f2a2c2905 (diff) | |
download | nova-a8fef8e5103973d8b9747bca3784c98e4075e454.tar.gz nova-a8fef8e5103973d8b9747bca3784c98e4075e454.tar.xz nova-a8fef8e5103973d8b9747bca3784c98e4075e454.zip |
Merge "Minor code optimization in _compute_topic"
-rw-r--r-- | nova/compute/rpcapi.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nova/compute/rpcapi.py b/nova/compute/rpcapi.py index 67dfc6a6b..914c45471 100644 --- a/nova/compute/rpcapi.py +++ b/nova/compute/rpcapi.py @@ -50,9 +50,9 @@ def _compute_topic(topic, ctxt, host, instance): if not instance: raise exception.NovaException(_('No compute host specified')) host = instance['host'] - if not host: - raise exception.NovaException(_('Unable to find host for ' - 'Instance %s') % instance['uuid']) + if not host: + raise exception.NovaException(_('Unable to find host for ' + 'Instance %s') % instance['uuid']) return rpc.queue_get_for(ctxt, topic, host) |