]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: black format systemd.py
authorJohn Mulligan <jmulligan@redhat.com>
Tue, 12 Sep 2023 22:27:47 +0000 (18:27 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Thu, 21 Sep 2023 13:47:34 +0000 (09:47 -0400)
Signed-off-by: John Mulligan <jmulligan@redhat.com>
src/cephadm/cephadmlib/systemd.py

index e48f1ddb0f8b1cd57d52787d0fffaa3d1be71e10..69fc8b740868b81b0443604db178f4b9ec28010f 100644 (file)
@@ -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'