Unit test for skipping network disconnect.

Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
Daniel Nephin 2016-04-15 15:42:36 -04:00 • committed by Joffrey F
commit 2a8c2c8ad6
3 changed files with 46 additions and 5 deletions

View file

@ -535,7 +535,7 @@ class Service(object):
def _get_aliases(self, network, container=None):
if container and container.labels.get(LABEL_ONE_OFF) == "True":
return set()
return []
return list(
{self.name} |