]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: use an f-string for readability
authorJohn Mulligan <jmulligan@redhat.com>
Wed, 21 Jun 2023 14:55:37 +0000 (10:55 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Wed, 9 Aug 2023 17:48:07 +0000 (13:48 -0400)
Signed-off-by: John Mulligan <jmulligan@redhat.com>
src/cephadm/cephadm.py

index 9e2ed786e1a1265f3b4a030cf7865dcf7edba9db..5eca05166b2b19176844e59680654b40d716b454 100755 (executable)
@@ -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