Address E0102 pylint errors

When pylint is run against manila codebase E0102 errors
are reported in api code, however it is appropriate there
to redefine methods like ``index`` and ``show`` in different
microversion contexts.

Add comments to inform pylint that these redefinitions are
OK.

Change-Id: I295e5b3332ce28811f92487cfafae06568d07871
This commit is contained in:
Tom Barron 2019-01-31 07:09:56 -05:00
parent c531b34fcd
commit 2b55a90cf4
1 changed files with 3 additions and 2 deletions

View File

@ -74,7 +74,7 @@ class ShareExportLocationController(wsgi.Controller):
return self._index(req, share_id)
@wsgi.Controller.api_version('2.47') # noqa: F811
def index(self, req, share_id):
def index(self, req, share_id): # pylint: disable=E0102
"""Return a list of export locations for share."""
return self._index(req, share_id,
ignore_secondary_replicas=True)
@ -85,7 +85,8 @@ class ShareExportLocationController(wsgi.Controller):
return self._show(req, share_id, export_location_uuid)
@wsgi.Controller.api_version('2.47') # noqa: F811
def show(self, req, share_id, export_location_uuid):
def show(self, req, share_id, # pylint: disable=E0102
export_location_uuid):
"""Return data about the requested export location."""
return self._show(req, share_id, export_location_uuid,
ignore_secondary_replicas=True)