Merge "RPC: remove unused parameter"
This commit is contained in:
commit
06e400d78c
|
@ -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.
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue