Don't set network mode when none is specified

Setting a value overrides the new default network option.

Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
This commit is contained in:
Aanand Prasad 2015-06-19 15:22:13 -07:00
commit c22cc02df5
3 changed files with 14 additions and 2 deletions

View file

@ -188,7 +188,7 @@ class Project(object):
del service_dict['net']
else:
net = 'bridge'
net = None
return net

View file

@ -457,7 +457,7 @@ class Service(object):
def _get_net(self):
if not self.net:
return "bridge"
return None
if isinstance(self.net, Service):
containers = self.net.containers()