diff --git a/src/sugar/core.py b/src/sugar/core.py index e291d8f..e39e5a6 100644 --- a/src/sugar/core.py +++ b/src/sugar/core.py @@ -118,7 +118,6 @@ def _call_compose_app( def _check_config_file(self): return Path(self.config_file).exists() - # Check if services item is given def _check_services_item(self): return bool(self.config.get('services')) @@ -142,7 +141,6 @@ def _set_default_group(self): self.config_group = self.config['groups']['main'] del self.config['services'] - def _filter_service_group(self): groups = self.config['groups'] @@ -194,7 +192,6 @@ def _load_config(self): f_content = io.StringIO(content) self.config = yaml.safe_load(f_content) - # check if either services or groups are present if not (self.config.get('services') or self.config.get('groups')): KxgrLogs.raise_error( @@ -212,7 +209,6 @@ def _load_config(self): self._filter_service_group() - def _load_compose_app(self): compose_cmd = self.config.get('compose-app', '') if compose_cmd.replace(' ', '-') != 'docker-compose': @@ -228,10 +224,8 @@ def _load_compose_app(self): self.compose_args.append('compose') def _load_compose_args(self): - self._filter_service_group() - if 'env-file' in self.service_group: self.compose_args.extend( ['--env-file', self.service_group['env-file']]