Browse Source

Enable pylint no-value-for-parameter

Change-Id: I532dc0c8f0f9f8c92b47a51138d5162bc506016b
changes/10/157610/2
Assaf Muller 7 years ago
parent
commit
d7d4f1f96d
  1. 1
      .pylintrc
  2. 3
      neutron/plugins/ml2/drivers/cisco/apic/apic_sync.py
  3. 5
      neutron/wsgi.py

1
.pylintrc

@ -22,7 +22,6 @@ disable=
no-member,
no-method-argument,
no-self-argument,
no-value-for-parameter,
# "W" Warnings for stylistic problems or minor programming issues
abstract-method,
arguments-differ,

3
neutron/plugins/ml2/drivers/cisco/apic/apic_sync.py

@ -82,7 +82,8 @@ class ApicBaseSynchronizer(SynchronizerBase):
port['id'])
network = self.core_plugin.get_network(ctx, port['network_id'])
mech_context = driver_context.PortContext(self.core_plugin, ctx,
port, network, binding)
port, network, binding,
[])
try:
self.driver.create_port_postcommit(mech_context)
except Exception:

5
neutron/wsgi.py

@ -682,11 +682,6 @@ class Debug(Middleware):
class Router(object):
"""WSGI middleware that maps incoming requests to WSGI apps."""
@classmethod
def factory(cls, global_config, **local_config):
"""Return an instance of the WSGI Router class."""
return cls()
def __init__(self, mapper):
"""Create a router for the given routes.Mapper.

Loading…
Cancel
Save