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:
|
try:
|
||||||
length = body['os-getConsoleOutput'].get('length')
|
length = body['os-getConsoleOutput'].get('length')
|
||||||
except (TypeError, KeyError):
|
except (TypeError, KeyError):
|
||||||
raise webob.exc.HTTPBadRequest(_('os-getConsoleOutput malformed or '
|
raise webob.exc.HTTPBadRequest(_('os-getConsoleOutput malformed '
|
||||||
'missing from request body'))
|
'or missing from request body'))
|
||||||
|
|
||||||
if length is not None:
|
if length is not None:
|
||||||
try:
|
try:
|
||||||
|
@ -72,6 +72,7 @@ class ConsoleOutputController(wsgi.Controller):
|
||||||
|
|
||||||
return {'output': output}
|
return {'output': output}
|
||||||
|
|
||||||
|
|
||||||
class Console_output(extensions.ExtensionDescriptor):
|
class Console_output(extensions.ExtensionDescriptor):
|
||||||
"""Console log output support, with tailing ability."""
|
"""Console log output support, with tailing ability."""
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue