Przeglądaj źródła

Use modern set notation in _get_aliases

Signed-off-by: Joffrey F <[email protected]>
Joffrey F 10 lat temu
rodzic
commit
0cb8ba3775
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      compose/service.py

+ 1 - 1
compose/service.py

@@ -516,7 +516,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 = {}