Fix a couple of PEP8 nits.
Address a couple of recently introduced PEP8 violations in console output API extension. Change-Id: Ia80fa5103e342c8e51772b0edc2a115abeaddf36
This commit is contained in:
parent
e238e07692
commit
fda8a73cb6
@ -49,8 +49,8 @@ class ConsoleOutputController(wsgi.Controller):
|
||||
try:
|
||||
length = body['os-getConsoleOutput'].get('length')
|
||||
except (TypeError, KeyError):
|
||||
raise webob.exc.HTTPBadRequest(_('os-getConsoleOutput malformed or '
|
||||
'missing from request body'))
|
||||
raise webob.exc.HTTPBadRequest(_('os-getConsoleOutput malformed '
|
||||
'or missing from request body'))
|
||||
|
||||
if length is not None:
|
||||
try:
|
||||
@ -72,6 +72,7 @@ class ConsoleOutputController(wsgi.Controller):
|
||||
|
||||
return {'output': output}
|
||||
|
||||
|
||||
class Console_output(extensions.ExtensionDescriptor):
|
||||
"""Console log output support, with tailing ability."""
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user