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,