Skip to content

Commit

Permalink
last changes
Browse files Browse the repository at this point in the history
  • Loading branch information
xmnlab committed Jan 25, 2024
1 parent 09f654a commit 12d5837
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/sugar/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ def _check_services_item(self):
return hasattr(self.config, 'services')

# set default group main
def _set_default_group(self) -> None:
def _load_root_services(self) -> None:
"""Load services attribute in the root of the configuration."""
# must set the default group
services = self.config.get('services', {})

Expand Down Expand Up @@ -210,12 +211,6 @@ def _load_config(self):
KxgrErrorType.KXGR_INVALID_CONFIGURATION,
)

def _load_root_services(self) -> None:
"""Load services attribute in the root of the configuration."""
if self.config.get('services'):
self._set_default_group()
# self._filter_service_group()

def _load_compose_app(self):
compose_cmd = self.config.get('compose-app', '')
if compose_cmd.replace(' ', '-') != 'docker-compose':
Expand Down

0 comments on commit 12d5837

Please sign in to comment.