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}
|
||||
|
||||
def create_subnet(self, data):
|
||||
subnet = setup_dict(data["subnet"],
|
||||
required=["network_id", "cidr", "ip_version"],
|
||||
defaults={
|
||||
"name": generate_name("subnet_"),
|
||||
"dns_nameservers": ["8.8.8.8", "8.8.4.4"]
|
||||
})
|
||||
subnet = setup_dict(
|
||||
data["subnet"],
|
||||
required=["network_id", "cidr", "ip_version"],
|
||||
defaults={"name": generate_name("subnet_"),
|
||||
"dns_nameservers": ["8.8.8.8", "8.8.4.4"]})
|
||||
if subnet["network_id"] not in self.__networks:
|
||||
raise neutron_exceptions.NeutronClientException
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user