From d7e7d7e17626693b52448508ef3591bde259d16b Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Tue, 13 Feb 2024 10:42:58 +0100 Subject: [PATCH] library: fix error message in cephadm_bootstrap module 2645b6ad95be2ed787a51d43739deb8a7e098143 introduced a cosmetic issue. That message was intended to print the path using f-strings. This commit addresses this. Signed-off-by: Guillaume Abrioux (cherry picked from commit a31eef878860a1bde01c5d6d1e06f3bb61cb200a) --- library/cephadm_bootstrap.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/library/cephadm_bootstrap.py b/library/cephadm_bootstrap.py index bfa01fb..15ae6e4 100644 --- a/library/cephadm_bootstrap.py +++ b/library/cephadm_bootstrap.py @@ -270,8 +270,9 @@ def extend_append(key: str, parameters: dict) -> None: ceph_keyring, ceph_pubkey]: if not allow_overwrite: - if os.path.exists(os.path.join(data_dir, f)): - out = '{} already exists, skipping.' + path: str = os.path.join(data_dir, f) + if os.path.exists(path): + out = f'{path} already exists, skipping.' exit_module( rc=0, startd=startd,