From 246451215feabb1a22dcdca511df96c511a0be86 Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Fri, 17 Nov 2023 14:34:52 -0500 Subject: [PATCH] cephadm: black format systemd_unit.py Signed-off-by: John Mulligan --- src/cephadm/cephadmlib/systemd_unit.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/cephadm/cephadmlib/systemd_unit.py b/src/cephadm/cephadmlib/systemd_unit.py index 208bfba2706..f44fd2b8fcd 100644 --- a/src/cephadm/cephadmlib/systemd_unit.py +++ b/src/cephadm/cephadmlib/systemd_unit.py @@ -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]) -- 2.47.3