diff --git a/containers/tests/group1/compose.yaml b/containers/tests/group1/compose.yaml index 65cbc84..d480876 100644 --- a/containers/tests/group1/compose.yaml +++ b/containers/tests/group1/compose.yaml @@ -16,8 +16,15 @@ services: command: python -m http.server service3: - hostname: service2 + hostname: service3 image: python:latest ports: - 18002:8000 command: python -m http.server + + service4: + hostname: servicef + image: python:latest + ports: + - 18003:8000 + command: python -m http.server diff --git a/containers_sugar/sugar.py b/containers_sugar/sugar.py index d39f9d0..43579a4 100644 --- a/containers_sugar/sugar.py +++ b/containers_sugar/sugar.py @@ -202,7 +202,10 @@ def _load_service_names(self): services = self.service_group['services'] if self.args.all: - self.service_names = [] + self.service_names = [ + v['name'] + for v in self.service_group.get('services', {}).get('list') + ] elif self.args.services == '': pass elif self.args.services: