summaryrefslogtreecommitdiffstats
path: root/bin/nova-console
diff options
context:
space:
mode:
authorMichael H Wilson <geekinutah@gmail.com>2012-10-16 15:47:52 -0600
committerMichael H Wilson <geekinutah@gmail.com>2012-10-25 23:51:48 -0600
commit0bf28bec6097d128aa439b288b249fafcac7dbc0 (patch)
tree348bde399a5efd964741470af9264195899c228e /bin/nova-console
parent5d677e204c99fbcf86e0c721ad2fd327a03c35c2 (diff)
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 'bin/nova-console')
-rwxr-xr-xbin/nova-console4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/nova-console b/bin/nova-console
index 97b152930..f664040b7 100755
--- a/bin/nova-console
+++ b/bin/nova-console
@@ -39,7 +39,9 @@ from nova import service
if __name__ == '__main__':
flags.parse_args(sys.argv)
+ FLAGS = flags.FLAGS
logging.setup("nova")
- server = service.Service.create(binary='nova-console')
+ server = service.Service.create(binary='nova-console',
+ topic=FLAGS.console_topic)
service.serve(server)
service.wait()