mirror of https://github.com/docker/compose.git
Use modern set notation in _get_aliases
Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
parent
f4a22b94ed
commit
654b3710f7
|
@ -515,7 +515,7 @@ class Service(object):
|
||||||
if container.labels.get(LABEL_ONE_OFF) == "True":
|
if container.labels.get(LABEL_ONE_OFF) == "True":
|
||||||
return set()
|
return set()
|
||||||
|
|
||||||
return set([self.name, container.short_id])
|
return {self.name, container.short_id}
|
||||||
|
|
||||||
def _get_links(self, link_to_self):
|
def _get_links(self, link_to_self):
|
||||||
links = {}
|
links = {}
|
||||||
|
|
Loading…
Reference in New Issue