Skip to content

Commit ad57e37

Browse files
committed
Remove true returns in pebble workload
1 parent d1d7062 commit ad57e37

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/benchmark/core/pebble_workload_base.py

+4-6
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,12 @@ def __init__(self, workload_params_template: str):
6868
@override
6969
def install(self) -> bool:
7070
"""Installs the workload."""
71-
return True
71+
...
7272

7373
@override
7474
def start(self) -> bool:
7575
"""Starts the workload service."""
76-
return True
76+
...
7777

7878
@override
7979
def restart(self) -> bool:
@@ -83,14 +83,12 @@ def restart(self) -> bool:
8383
@override
8484
def halt(self) -> bool:
8585
"""Stop the benchmark service."""
86-
if self.is_running():
87-
return service_stop(self.paths.svc_name)
88-
return self.is_stopped()
86+
...
8987

9088
@override
9189
def reload(self) -> bool:
9290
"""Reloads the workload service."""
93-
return True
91+
...
9492

9593
@override
9694
def read(self, path: str) -> list[str]:

0 commit comments

Comments
 (0)