From 934fe80d759b09b22ca5adf64cfcb5478c5fdbf6 Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Tue, 12 Sep 2023 18:27:47 -0400 Subject: [PATCH] cephadm: black format systemd.py Signed-off-by: John Mulligan --- src/cephadm/cephadmlib/systemd.py | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/cephadm/cephadmlib/systemd.py b/src/cephadm/cephadmlib/systemd.py index e48f1ddb0f8b1..69fc8b740868b 100644 --- a/src/cephadm/cephadmlib/systemd.py +++ b/src/cephadm/cephadmlib/systemd.py @@ -19,8 +19,11 @@ def check_unit(ctx, unit_name): enabled = False installed = False try: - out, err, code = call(ctx, ['systemctl', 'is-enabled', unit_name], - verbosity=CallVerbosity.QUIET) + out, err, code = call( + ctx, + ['systemctl', 'is-enabled', unit_name], + verbosity=CallVerbosity.QUIET, + ) if code == 0: enabled = True installed = True @@ -33,8 +36,11 @@ def check_unit(ctx, unit_name): state = 'unknown' try: - out, err, code = call(ctx, ['systemctl', 'is-active', unit_name], - verbosity=CallVerbosity.QUIET) + out, err, code = call( + ctx, + ['systemctl', 'is-active', unit_name], + verbosity=CallVerbosity.QUIET, + ) out = out.strip() if out in ['active']: state = 'running' -- 2.39.5