mirror of https://github.com/docker/compose.git
Remove duplicated logic from initialize_networks()
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
This commit is contained in:
parent
4e61377c6d
commit
d98b64f6e7
|
@ -300,11 +300,7 @@ class Project(object):
|
|||
if not self.use_networking:
|
||||
return
|
||||
|
||||
networks = self.networks
|
||||
if self.uses_default_network():
|
||||
networks.append(self.default_network)
|
||||
|
||||
for network in networks:
|
||||
for network in self.networks:
|
||||
network.ensure()
|
||||
|
||||
def uses_default_network(self):
|
||||
|
|
Loading…
Reference in New Issue