From e740da6088f93967759a2ab8ec29ccc8e1a06aa4 Mon Sep 17 00:00:00 2001 From: Michael Johnson Date: Wed, 30 Jan 2019 08:15:10 -0800 Subject: [PATCH] Fix indentation for new pycodestyle E117 There was an over indented method in openstackcloud.py#L3099 [1] that the new pycodestyle E117[2] is catching[3]. This patch corrects the indentation to allow pep8/flake8 to pass. [1] https://github.com/openstack/openstacksdk/blob/master/openstack/cloud/ \ openstackcloud.py#L3099 [2] https://github.com/PyCQA/pycodestyle/blob/master/CHANGES.txt#L9 [3] http://logs.openstack.org/56/633856/2/check/openstack-tox-pep8/5c57397/ \ job-output.txt.gz#_2019-01-30_15_27_16_765029 Change-Id: I20fd50195ca6aa6ba67ba15e7ba1155acb18d4eb --- openstack/cloud/openstackcloud.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/openstack/cloud/openstackcloud.py b/openstack/cloud/openstackcloud.py index 9ddf30cb8..398218124 100755 --- a/openstack/cloud/openstackcloud.py +++ b/openstack/cloud/openstackcloud.py @@ -3096,10 +3096,10 @@ class _OpenStackCloudMixin(_normalize.Normalizer): return "" def _get_server_console_output(self, server_id, length=None): - data = _adapter._json_response(self.compute.post( - '/servers/{server_id}/action'.format(server_id=server_id), - json={'os-getConsoleOutput': {'length': length}})) - return self._get_and_munchify('output', data) + data = _adapter._json_response(self.compute.post( + '/servers/{server_id}/action'.format(server_id=server_id), + json={'os-getConsoleOutput': {'length': length}})) + return self._get_and_munchify('output', data) def get_server( self, name_or_id=None, filters=None, detailed=False, bare=False,