Browse Source

Merge "Fix Flake F811 for microversioned methods"

changes/74/749874/5
Zuul 10 months ago
committed by Gerrit Code Review
parent
commit
907a9250e7
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      senlin/api/openstack/v1/webhooks.py
  2. +1
    -1
      senlin/tests/unit/api/common/test_wsgi.py

+ 1
- 1
senlin/api/openstack/v1/webhooks.py View File

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


+ 1
- 1
senlin/tests/unit/api/common/test_wsgi.py View File

@ -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…
Cancel
Save