Fix N402 for nova/api
Fix N402 errors (single line docstring should end in a period) for nova/api, part of a larger attempt to stop ignoring our own hacking.py tests. Fix tests that look at docs in extensions Change-Id: I89d89d1fcf37c4e7740c36375da4c751d1b621ed
This commit is contained in:
@@ -76,7 +76,7 @@ class InjectContext(wsgi.Middleware):
|
||||
|
||||
|
||||
class NovaKeystoneContext(wsgi.Middleware):
|
||||
"""Make a request context from keystone headers"""
|
||||
"""Make a request context from keystone headers."""
|
||||
|
||||
@webob.dec.wsgify(RequestClass=wsgi.Request)
|
||||
def __call__(self, req):
|
||||
@@ -128,7 +128,7 @@ class NovaKeystoneContext(wsgi.Middleware):
|
||||
return self.application
|
||||
|
||||
def _get_roles(self, req):
|
||||
"""Get the list of roles"""
|
||||
"""Get the list of roles."""
|
||||
|
||||
if 'X_ROLES' in req.headers:
|
||||
roles = req.headers.get('X_ROLES', '')
|
||||
|
||||
Reference in New Issue
Block a user