summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-10-26 21:47:29 +0000
committerGerrit Code Review <review@openstack.org>2012-10-26 21:47:29 +0000
commit9d3c2083c5d1db383f250acd7f34dc359d04baff (patch)
tree6835ba38b199e2878a75be74960ae58217d1790c /nova/api
parent6a10cfc111c079ce4d91ce044de72c65945d437f (diff)
parent0bf28bec6097d128aa439b288b249fafcac7dbc0 (diff)
Merge "Fix hardcoded topic strings with constants."
Diffstat (limited to 'nova/api')
-rw-r--r--nova/api/openstack/compute/contrib/instance_usage_audit_log.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/api/openstack/compute/contrib/instance_usage_audit_log.py b/nova/api/openstack/compute/contrib/instance_usage_audit_log.py
index 1331c0a93..4547bbd01 100644
--- a/nova/api/openstack/compute/contrib/instance_usage_audit_log.py
+++ b/nova/api/openstack/compute/contrib/instance_usage_audit_log.py
@@ -82,7 +82,7 @@ class InstanceUsageAuditLogController(object):
# We do this this way to include disabled compute services,
# which can have instances on them. (mdragon)
services = [svc for svc in db.service_get_all(context)
- if svc['topic'] == 'compute']
+ if svc['topic'] == FLAGS.compute_topic]
hosts = set(serv['host'] for serv in services)
seen_hosts = set()
done_hosts = set()