From: John Mulligan Date: Wed, 16 Jul 2025 20:17:07 +0000 (-0400) Subject: cephadm: update type of populate_files first argument X-Git-Tag: v20.1.1~25^2~32 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=e14ea427d0e96d1d06ce88ec0e352158f963d062;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 (cherry picked from commit 87f5a3d9a833244077cad01df92400a8b20368b9) --- diff --git a/src/cephadm/cephadmlib/file_utils.py b/src/cephadm/cephadmlib/file_utils.py index 4dd88cc36712f..1cd12adf0187a 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: