diff options
| author | Michael H Wilson <geekinutah@gmail.com> | 2012-10-16 15:47:52 -0600 |
|---|---|---|
| committer | Michael H Wilson <geekinutah@gmail.com> | 2012-10-25 23:51:48 -0600 |
| commit | 0bf28bec6097d128aa439b288b249fafcac7dbc0 (patch) | |
| tree | 348bde399a5efd964741470af9264195899c228e /nova/api | |
| parent | 5d677e204c99fbcf86e0c721ad2fd327a03c35c2 (diff) | |
| download | nova-0bf28bec6097d128aa439b288b249fafcac7dbc0.tar.gz nova-0bf28bec6097d128aa439b288b249fafcac7dbc0.tar.xz nova-0bf28bec6097d128aa439b288b249fafcac7dbc0.zip | |
Fix hardcoded topic strings with constants.
Replace hardcoded topic strings like 'volume' or 'compute'
with config constants like FLAGS.volume_topic, etc. See
bug #1057831 and bug #1061628.
Change-Id: I817ecc3cbe3245b51a0c047be58d17edfec8a838
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/openstack/compute/contrib/instance_usage_audit_log.py | 2 |
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() |
