1
0
Эх сурвалжийг харах

Use modern set notation in _get_aliases

Signed-off-by: Joffrey F <[email protected]>
Joffrey F 9 жил өмнө
parent
commit
654b3710f7
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      compose/service.py

+ 1 - 1
compose/service.py

@@ -515,7 +515,7 @@ class Service(object):
         if container.labels.get(LABEL_ONE_OFF) == "True":
             return set()
 
-        return set([self.name, container.short_id])
+        return {self.name, container.short_id}
 
     def _get_links(self, link_to_self):
         links = {}