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.
@@ -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)
