From: John Mulligan Date: Tue, 12 Sep 2023 22:27:47 +0000 (-0400) Subject: cephadm: black format systemd.py X-Git-Tag: v19.0.0~421^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=934fe80d759b09b22ca5adf64cfcb5478c5fdbf6;p=ceph.git cephadm: black format systemd.py Signed-off-by: John Mulligan --- 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'