From f4c68e6bbbcfd1aafbe3f17211459d8e7f8d6cdd Mon Sep 17 00:00:00 2001 From: timoxa0 Date: Sat, 18 May 2024 07:33:00 -0700 Subject: [PATCH] Convert path to str --- lon_deployer/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lon_deployer/utils.py b/lon_deployer/utils.py index 7ba061b..60ce955 100644 --- a/lon_deployer/utils.py +++ b/lon_deployer/utils.py @@ -110,6 +110,6 @@ def check_rootfs(filepath: pathlib.Path) -> bool: magic = Magic(mime=True) else: raise exceptions.UnsupportedPlatform(osname) - filetype = magic.from_file(filepath.absolute()) + filetype = magic.from_file(str(filepath.absolute())) logger.debug(f"RootFS MIME type: {filetype}") return filetype in ["application/octet-stream", "inode/blockdevice"]