]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
cephadm: update type of populate_files first argument
authorJohn Mulligan <jmulligan@redhat.com>
Wed, 16 Jul 2025 20:17:07 +0000 (16:17 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Tue, 12 Aug 2025 14:24:49 +0000 (10:24 -0400)
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 <jmulligan@redhat.com>
src/cephadm/cephadmlib/file_utils.py

index 4dd88cc36712fcbf6348cc133d83120a08a598c3..1cd12adf0187a7861e7bcb8d0541d5401b03f1e0 100644 (file)
@@ -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: