Skip to content

Commit

Permalink
fix: filter out the sleep operation service
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulFarault committed Nov 8, 2023
1 parent 1a903fc commit 9c82f03
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tdp/core/collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,13 @@ def _init_operations(self):

def get_services(self) -> set[str]:
"""Get the list of services names."""
return {operation.service_name for operation in self.operations.values()}
# Filters out the sleep operation service as it is not a real service.
operation_sleep_name = ServiceComponentName(OPERATION_SLEEP_NAME)
return {
operation.service_name
for operation in self.operations.values()
if operation.service_name != operation_sleep_name.service_name
}

def get_default_vars_paths(self, service_name: str) -> Generator[Path, None, None]:
"""Get the default vars paths for a service."""
Expand Down

0 comments on commit 9c82f03

Please sign in to comment.