Fix to nova-ajax-console-proxy to use the new syntax.

create_consumer and create_connection abstractions were added recently.
This commit is contained in:
Mandell Degerness
2011-08-04 10:43:16 -07:00
parent 55ee6b0640
commit de21bcf2c7
2 changed files with 6 additions and 5 deletions

View File

@@ -114,11 +114,11 @@ class AjaxConsoleProxy(object):
AjaxConsoleProxy.tokens[kwargs['token']] = \
{'args': kwargs, 'last_activity': time.time()}
conn = rpc.Connection.instance(new=True)
consumer = rpc.TopicAdapterConsumer(
connection=conn,
proxy=TopicProxy,
topic=FLAGS.ajax_console_proxy_topic)
conn = rpc.create_connection(new=True)
consumer = rpc.create_consumer(
conn,
FLAGS.ajax_console_proxy_topic,
TopicProxy)
def delete_expired_tokens():
now = time.time()