From: John Mulligan Date: Fri, 17 Nov 2023 19:34:52 +0000 (-0500) Subject: cephadm: black format systemd_unit.py X-Git-Tag: v19.3.0~284^2~24 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=246451215feabb1a22dcdca511df96c511a0be86;p=ceph.git cephadm: black format systemd_unit.py Signed-off-by: John Mulligan --- diff --git a/src/cephadm/cephadmlib/systemd_unit.py b/src/cephadm/cephadmlib/systemd_unit.py index 208bfba2706a..f44fd2b8fcd5 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])