Merge "[pylint] Fix Manage-Unmanage with DHSS=True pylint issues"
This commit is contained in:
commit
9bcbeeed1f
@ -271,8 +271,9 @@ class ShareSnapshotsController(share_snapshots.ShareSnapshotMixin,
|
||||
return self._unmanage(req, id, body)
|
||||
|
||||
@wsgi.Controller.api_version('2.49') # noqa
|
||||
@wsgi.action('unmanage') # pylint: disable=function-redefined
|
||||
def unmanage(self, req, id, body=None):
|
||||
@wsgi.action('unmanage')
|
||||
def unmanage(self, req, id,
|
||||
body=None): # pylint: disable=function-redefined
|
||||
return self._unmanage(req, id, body, allow_dhss_true=True)
|
||||
|
||||
@wsgi.Controller.api_version('2.32')
|
||||
|
@ -425,8 +425,9 @@ class ShareController(shares.ShareMixin,
|
||||
return self._unmanage(req, id, body, allow_dhss_true=False)
|
||||
|
||||
@wsgi.Controller.api_version('2.49') # noqa
|
||||
@wsgi.action('unmanage') # pylint: disable=function-redefined
|
||||
def unmanage(self, req, id, body=None):
|
||||
@wsgi.action('unmanage')
|
||||
def unmanage(self, req, id,
|
||||
body=None): # pylint: disable=function-redefined
|
||||
return self._unmanage(req, id, body, allow_dhss_true=True)
|
||||
|
||||
@wsgi.Controller.api_version('2.27')
|
||||
|
@ -51,6 +51,7 @@ def upgrade():
|
||||
connection = op.get_bind()
|
||||
share_servers_table = utils.load_table('share_servers', connection)
|
||||
for server in connection.execute(share_servers_table.select()):
|
||||
# pylint: disable=no-value-for-parameter
|
||||
connection.execute(
|
||||
share_servers_table.update().where(
|
||||
share_servers_table.c.id == server.id,
|
||||
|
Loading…
Reference in New Issue
Block a user