]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: black format systemd_unit.py
authorJohn Mulligan <jmulligan@redhat.com>
Fri, 17 Nov 2023 19:34:52 +0000 (14:34 -0500)
committerJohn Mulligan <jmulligan@redhat.com>
Tue, 2 Jan 2024 14:30:20 +0000 (09:30 -0500)
Signed-off-by: John Mulligan <jmulligan@redhat.com>
src/cephadm/cephadmlib/systemd_unit.py

index 208bfba2706a135b4c94a9413bb08a2bbc293169..f44fd2b8fcd543910fd1aa20700296a8367f3b1e 100644 (file)
@@ -156,11 +156,13 @@ def _install_base_units(ctx: CephadmContext, fsid: str) -> None:
     # global unit
     existed = os.path.exists(ctx.unit_dir + '/ceph.target')
     with write_new(ctx.unit_dir + '/ceph.target', perms=None) as f:
-        f.write('[Unit]\n'
-                'Description=All Ceph clusters and services\n'
-                '\n'
-                '[Install]\n'
-                'WantedBy=multi-user.target\n')
+        f.write(
+            '[Unit]\n'
+            'Description=All Ceph clusters and services\n'
+            '\n'
+            '[Install]\n'
+            'WantedBy=multi-user.target\n'
+        )
     if not existed:
         # we disable before enable in case a different ceph.target
         # (from the traditional package) is present; while newer
@@ -181,8 +183,7 @@ def _install_base_units(ctx: CephadmContext, fsid: str) -> None:
             'Before=ceph.target\n'
             '\n'
             '[Install]\n'
-            'WantedBy=multi-user.target ceph.target\n'.format(
-                fsid=fsid)
+            'WantedBy=multi-user.target ceph.target\n'.format(fsid=fsid)
         )
     if not existed:
         call_throws(ctx, ['systemctl', 'enable', 'ceph-%s.target' % fsid])