From 4ebb0c678886c3e607fe53a87bd52de4df48ada3 Mon Sep 17 00:00:00 2001 From: Ivan Ogasawara Date: Wed, 8 Feb 2023 21:48:04 -0400 Subject: [PATCH 1/2] fix: Fix the argument all --- containers_sugar/sugar.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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: From 73784526e2b45435c378f831f7d1e3bd40006d1c Mon Sep 17 00:00:00 2001 From: Ivan Ogasawara Date: Wed, 8 Feb 2023 21:51:28 -0400 Subject: [PATCH 2/2] Improve the compose for group1 --- containers/tests/group1/compose.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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