From 0bf28bec6097d128aa439b288b249fafcac7dbc0 Mon Sep 17 00:00:00 2001 From: Michael H Wilson Date: Tue, 16 Oct 2012 15:47:52 -0600 Subject: 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 --- bin/nova-consoleauth | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bin/nova-consoleauth') diff --git a/bin/nova-consoleauth b/bin/nova-consoleauth index f8277daf6..58ecd37b3 100755 --- a/bin/nova-consoleauth +++ b/bin/nova-consoleauth @@ -39,8 +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-consoleauth') + server = service.Service.create(binary='nova-consoleauth', + topic=FLAGS.consoleauth_topic) service.serve(server) service.wait() -- cgit