Fix E117 for pycodestyle (pep8) 2.5.0

The new 2.5.0 release of pycodestyle enforces E117
and is not managed by upper-constraints so we have
to fix the violations. Thankfully there are only a
few and they are fixed here.

Change-Id: Ic71eaf9b3552dfa6603632e556b102696c8d76e4
This commit is contained in:
Matt Riedemann 2019-01-29 16:19:49 -05:00
parent 4d02ec7cf6
commit 91d92424bc
3 changed files with 5 additions and 5 deletions

View File

@ -256,8 +256,8 @@ class AttachInterfacesTestJSON(AttachInterfacesTestBase):
if not (CONF.auth.use_dynamic_credentials and
CONF.auth.create_isolated_networks and
not CONF.network.shared_physical_network):
raise self.skipException("Only owner network supports "
"creating interface by fixed ip.")
raise self.skipException("Only owner network supports "
"creating interface by fixed ip.")
server, ifs = self._create_server_get_interfaces()
interface_count = len(ifs)

View File

@ -233,8 +233,8 @@ class TestChecker(object):
if self._is_test_case(module, node))
for node in test_cases:
for subnode in filter(self._is_test_method, node.body):
test_name = '%s.%s' % (node.name, subnode.name)
tests[module_name]['tests'][test_name] = subnode
test_name = '%s.%s' % (node.name, subnode.name)
tests[module_name]['tests'][test_name] = subnode
return tests
@staticmethod

View File

@ -526,7 +526,7 @@ class RestClient(object):
if (resp.status == 205 and
0 != len(set(resp.keys()) - set(('status',)) -
self.response_header_lc - self.general_header_lc)):
raise exceptions.ResponseWithEntity()
raise exceptions.ResponseWithEntity()
# NOTE(afazekas)
# Now the swift sometimes (delete not empty container)
# returns with non json error response, we can create new rest class