summaryrefslogtreecommitdiffstats
path: root/src/cephadm/cephadmlib/systemd.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/cephadm/cephadmlib/systemd.py')
-rw-r--r--src/cephadm/cephadmlib/systemd.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cephadm/cephadmlib/systemd.py b/src/cephadm/cephadmlib/systemd.py
index a07757eccad..1956957d457 100644
--- a/src/cephadm/cephadmlib/systemd.py
+++ b/src/cephadm/cephadmlib/systemd.py
@@ -11,8 +11,7 @@ from .packagers import Packager
logger = logging.getLogger()
-def check_unit(ctx, unit_name):
- # type: (CephadmContext, str) -> Tuple[bool, str, bool]
+def check_unit(ctx: CephadmContext, unit_name: str) -> Tuple[bool, str, bool]:
# NOTE: we ignore the exit code here because systemctl outputs
# various exit codes based on the state of the service, but the
# string result is more explicit (and sufficient).
@@ -56,8 +55,9 @@ def check_unit(ctx, unit_name):
return (enabled, state, installed)
-def check_units(ctx, units, enabler=None):
- # type: (CephadmContext, List[str], Optional[Packager]) -> bool
+def check_units(
+ ctx: CephadmContext, units: List[str], enabler: Optional[Packager] = None
+) -> bool:
for u in units:
(enabled, state, installed) = check_unit(ctx, u)
if enabled and state == 'running':