Remove duplicated logic from initialize_networks()

Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
This commit is contained in:
Aanand Prasad 2016-01-14 18:09:45 +00:00
parent 4e61377c6d
commit d98b64f6e7
1 changed files with 1 additions and 5 deletions

View File

@ -300,11 +300,7 @@ class Project(object):
if not self.use_networking: if not self.use_networking:
return return
networks = self.networks for network in self.networks:
if self.uses_default_network():
networks.append(self.default_network)
for network in networks:
network.ensure() network.ensure()
def uses_default_network(self): def uses_default_network(self):