diff options
author | Daniel Nephin <dnephin@docker.com> | 2015-10-20 12:49:45 -0400 |
---|---|---|
committer | Joffrey F <joffrey@docker.com> | 2016-01-05 15:09:39 -0800 |
commit | 4bf2f8c4f910b5216b2755377e7c394e7c5c7ee6 (patch) | |
tree | 2061759fec3b8515b89b29806a8478519fb8309c /compose/container.py | |
parent | 97fe2ee40c7018db3cbf0c40feb556e9e7940689 (diff) |
Fix lookup of linked containers for API version 1.20
Signed-off-by: Daniel Nephin <dnephin@docker.com>
Diffstat (limited to 'compose/container.py')
-rw-r--r-- | compose/container.py | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/compose/container.py b/compose/container.py index 68218829..5730f224 100644 --- a/compose/container.py +++ b/compose/container.py @@ -228,16 +228,6 @@ class Container(object): self.has_been_inspected = True return self.dictionary - # TODO: only used by tests, move to test module - def links(self): - links = [] - for container in self.client.containers(): - for name in container['Names']: - bits = name.split('/') - if len(bits) > 2 and bits[1] == self.name: - links.append(bits[2]) - return links - def attach(self, *args, **kwargs): return self.client.attach(self.id, *args, **kwargs) |