From: John Mulligan Date: Wed, 21 Jun 2023 14:55:37 +0000 (-0400) Subject: cephadm: use an f-string for readability X-Git-Tag: v19.0.0~711^2~12 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=4480a20c94002b0418b7a870ec6a9026736cf779;p=ceph-ci.git cephadm: use an f-string for readability Signed-off-by: John Mulligan --- diff --git a/src/cephadm/cephadm.py b/src/cephadm/cephadm.py index 9e2ed786e1a..5eca05166b2 100755 --- a/src/cephadm/cephadm.py +++ b/src/cephadm/cephadm.py @@ -3795,7 +3795,7 @@ def _write_container_cmd_to_bash( # Sometimes adding a comment, especially if there are multiple containers in one # unit file, makes it easier to read and grok. assert '\n' not in comment - file_obj.write('# ' + comment + '\n') + file_obj.write(f'# {comment}\n') # Sometimes, adding `--rm` to a run_cmd doesn't work. Let's remove the container manually _bash_cmd( file_obj, container.rm_cmd(old_cname=True), check=False, stderr=False