Skip to content

Commit

Permalink
library: fix error message in cephadm_bootstrap module
Browse files Browse the repository at this point in the history
2645b6a introduced a cosmetic issue.

That message was intended to print the path using f-strings.
This commit addresses this.

Signed-off-by: Guillaume Abrioux <[email protected]>
(cherry picked from commit a31eef8)
  • Loading branch information
guits authored and mergify[bot] committed Feb 13, 2024
1 parent de228eb commit d7e7d7e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions library/cephadm_bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d7e7d7e

Please sign in to comment.