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:
1
Authors
1
Authors
@@ -64,6 +64,7 @@ Kirill Shileev <kshileev@gmail.com>
|
|||||||
Koji Iida <iida.koji@lab.ntt.co.jp>
|
Koji Iida <iida.koji@lab.ntt.co.jp>
|
||||||
Lorin Hochstein <lorin@isi.edu>
|
Lorin Hochstein <lorin@isi.edu>
|
||||||
Lvov Maxim <usrleon@gmail.com>
|
Lvov Maxim <usrleon@gmail.com>
|
||||||
|
Mandell Degerness <mdegerne@gmail.com>
|
||||||
Mark Washenberger <mark.washenberger@rackspace.com>
|
Mark Washenberger <mark.washenberger@rackspace.com>
|
||||||
Masanori Itoh <itoumsn@nttdata.co.jp>
|
Masanori Itoh <itoumsn@nttdata.co.jp>
|
||||||
Matt Dietz <matt.dietz@rackspace.com>
|
Matt Dietz <matt.dietz@rackspace.com>
|
||||||
|
|||||||
@@ -114,11 +114,11 @@ class AjaxConsoleProxy(object):
|
|||||||
AjaxConsoleProxy.tokens[kwargs['token']] = \
|
AjaxConsoleProxy.tokens[kwargs['token']] = \
|
||||||
{'args': kwargs, 'last_activity': time.time()}
|
{'args': kwargs, 'last_activity': time.time()}
|
||||||
|
|
||||||
conn = rpc.Connection.instance(new=True)
|
conn = rpc.create_connection(new=True)
|
||||||
consumer = rpc.TopicAdapterConsumer(
|
consumer = rpc.create_consumer(
|
||||||
connection=conn,
|
conn,
|
||||||
proxy=TopicProxy,
|
FLAGS.ajax_console_proxy_topic,
|
||||||
topic=FLAGS.ajax_console_proxy_topic)
|
TopicProxy)
|
||||||
|
|
||||||
def delete_expired_tokens():
|
def delete_expired_tokens():
|
||||||
now = time.time()
|
now = time.time()
|
||||||
|
|||||||
Reference in New Issue
Block a user