Add E126 pep8 rule
Updated rally code with E126 pep8 rule Closes-Bug:#1432078 Change-Id: Iefebdc6fdc4604869f26711240370b9e007e55df
This commit is contained in:
parent
a9f2cbefc5
commit
907b56a2e4
@ -1150,12 +1150,11 @@ class FakeNeutronClient(object):
|
|||||||
return {"router": router}
|
return {"router": router}
|
||||||
|
|
||||||
def create_subnet(self, data):
|
def create_subnet(self, data):
|
||||||
subnet = setup_dict(data["subnet"],
|
subnet = setup_dict(
|
||||||
required=["network_id", "cidr", "ip_version"],
|
data["subnet"],
|
||||||
defaults={
|
required=["network_id", "cidr", "ip_version"],
|
||||||
"name": generate_name("subnet_"),
|
defaults={"name": generate_name("subnet_"),
|
||||||
"dns_nameservers": ["8.8.8.8", "8.8.4.4"]
|
"dns_nameservers": ["8.8.8.8", "8.8.4.4"]})
|
||||||
})
|
|
||||||
if subnet["network_id"] not in self.__networks:
|
if subnet["network_id"] not in self.__networks:
|
||||||
raise neutron_exceptions.NeutronClientException
|
raise neutron_exceptions.NeutronClientException
|
||||||
|
|
||||||
|
2
tox.ini
2
tox.ini
@ -46,7 +46,7 @@ commands =
|
|||||||
downloadcache = ~/cache/pip
|
downloadcache = ~/cache/pip
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
ignore = E126,H703
|
ignore = H703
|
||||||
show-source = true
|
show-source = true
|
||||||
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,tools,build,setup.py
|
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,tools,build,setup.py
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user