lib.FileContext._mktemp(): Fix missing self before _chroot()

_mktemp() call _chroot() instead of self._chroot(), fix that.

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2026-04-25 13:40:48 +02:00
commit 37fcf56ad2
Signed by: Jan Lindemann
GPG key ID: 3750640C9E25DD61

View file

@ -241,7 +241,7 @@ class FileContext(abc.ABC):
raise NotImplementedError(f'{self.log_name}: mktemp("{path}") is not implemented') raise NotImplementedError(f'{self.log_name}: mktemp("{path}") is not implemented')
async def mktemp(self, tmpl: str, directory: bool=False) -> None: async def mktemp(self, tmpl: str, directory: bool=False) -> None:
return await self._mktemp(_chroot(tmpl), directory) return await self._mktemp(self._chroot(tmpl), directory)
async def _chown(self, path: str, owner: str|None, group: str|None) -> None: async def _chown(self, path: str, owner: str|None, group: str|None) -> None:
raise NotImplementedError(f'{self.log_name}: chown("{path}") is not implemented') raise NotImplementedError(f'{self.log_name}: chown("{path}") is not implemented')