Fix Flake F811 for microversioned methods
CI/CD jobs were switch to Ubuntu Focal (20.04) [1] which caused flake to flag F811 errors for methods with duplicate names. These methods are actually microversioned, so this should not be flagged. Adding noqa for F811 to avoid getting flagged by flake. [1] http://lists.openstack.org/pipermail/openstack-discuss/2020-September/017104.html Change-Id: I8e12127bf331f37d1a826ce7f0296183df2ba181
This commit is contained in:
parent
585bd14c70
commit
e887e91dd5
|
@ -50,7 +50,7 @@ class WebhookController(wsgi.Controller):
|
|||
|
||||
@wsgi.Controller.api_version("1.10") # noqa
|
||||
@util.policy_enforce
|
||||
def trigger(self, req, webhook_id, body=None):
|
||||
def trigger(self, req, webhook_id, body=None): # noqa F811
|
||||
obj = util.parse_request(
|
||||
'WebhookTriggerRequestParamsInBody', req, {'identity': webhook_id,
|
||||
'body': body})
|
||||
|
|
|
@ -345,7 +345,7 @@ class FakeController(wsgi.Controller):
|
|||
return {'score': 100}
|
||||
|
||||
@wsgi.Controller.api_version('4.0') # noqa
|
||||
def dance(self, req):
|
||||
def dance(self, req): # noqa F811
|
||||
return {'score': 60}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue