Merge "RPC: remove unused parameter"

This commit is contained in:
Jenkins 2016-04-12 05:06:10 +00:00 committed by Gerrit Code Review
commit 06e400d78c
2 changed files with 2 additions and 4 deletions

View File

@ -14,7 +14,6 @@
# License for the specific language governing permissions and limitations
# under the License.
from debtcollector import removals
from oslo_config import cfg
from oslo_log import log as logging
import oslo_messaging
@ -227,8 +226,7 @@ class VoidConnection(object):
# functions
@removals.removed_kwarg('new')
def create_connection(new=True):
def create_connection():
# NOTE(salv-orlando): This is a clever interpretation of the factory design
# patter aimed at preventing plugins from initializing RPC servers upon
# initialization when they are running in the REST over HTTP API server.

View File

@ -222,7 +222,7 @@ class Ml2Plugin(db_base_plugin_v2.NeutronDbPluginV2,
return self.conn.consume_in_threads()
def start_rpc_state_reports_listener(self):
self.conn_reports = n_rpc.create_connection(new=True)
self.conn_reports = n_rpc.create_connection()
self.conn_reports.create_consumer(topics.REPORTS,
[agents_db.AgentExtRpcCallback()],
fanout=False)