From: John Mulligan Date: Wed, 16 Jul 2025 20:17:07 +0000 (-0400) Subject: cephadm: update type of populate_files first argument X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=87f5a3d9a833244077cad01df92400a8b20368b9;p=ceph.git cephadm: update type of populate_files first argument The populate_files function's first argument was typed as `str` but all places that str is used in that function can also use a pathlib.Path. Update the type of that argument to match. Signed-off-by: John Mulligan --- diff --git a/src/cephadm/cephadmlib/file_utils.py b/src/cephadm/cephadmlib/file_utils.py index 4dd88cc36712..1cd12adf0187 100644 --- a/src/cephadm/cephadmlib/file_utils.py +++ b/src/cephadm/cephadmlib/file_utils.py @@ -54,7 +54,7 @@ def write_new( def populate_files( - config_dir: str, config_files: Dict, uid: int, gid: int + config_dir: Union[str, Path], config_files: Dict, uid: int, gid: int ) -> None: """create config files for different services""" for fname in config_files: