From 75b40370cff4894fa2a7bec609833c0d0b28393c Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Fri, 15 Apr 2016 21:38:54 +0900 Subject: [PATCH] Remove new= argument from create_connection It has been marked deprecated [1] and recently removed. [2] [1] I57b0229c2b6028796cd10bbbfc9b166cf8a6dab0 [2] I550c65861a8664068e340b7b4689b2345951e888 Closes-Bug: #1570202 Closes-Bug: #1570840 Change-Id: Ia384be8d13431dbd6327a6bb689622d8d3731538 --- neutron_taas/services/taas/agents/ovs/agent.py | 2 +- neutron_taas/services/taas/taas_plugin.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/neutron_taas/services/taas/agents/ovs/agent.py b/neutron_taas/services/taas/agents/ovs/agent.py index 3993ba1..80c61cb 100755 --- a/neutron_taas/services/taas/agents/ovs/agent.py +++ b/neutron_taas/services/taas/agents/ovs/agent.py @@ -58,7 +58,7 @@ def main(): # Set up RPC mgr = taas_ovs_agent.TaasOvsAgentRpcCallback(cfg.CONF) endpoints = [mgr] - conn = n_rpc.create_connection(new=True) + conn = n_rpc.create_connection() conn.create_consumer(topics.TAAS_AGENT, endpoints, fanout=False) conn.consume_in_threads() diff --git a/neutron_taas/services/taas/taas_plugin.py b/neutron_taas/services/taas/taas_plugin.py index d247886..454ff6d 100755 --- a/neutron_taas/services/taas/taas_plugin.py +++ b/neutron_taas/services/taas/taas_plugin.py @@ -95,7 +95,7 @@ class TaasPlugin(taas_db.Tass_db_Mixin): LOG.debug("TAAS PLUGIN INITIALIZED") self.endpoints = [TaasCallbacks(self)] - self.conn = n_rpc.create_connection(new=True) + self.conn = n_rpc.create_connection() self.conn.create_consumer( topics.TAAS_PLUGIN, self.endpoints, fanout=False) self.conn.consume_in_threads()