[PATCH v2 2/3] Toaster: Bug-fix logging permission error in docker
Alassane Yattara <[email protected]> Thu, 26 Oct 2023 15:12:48 +0100
| Newsgroups | org.yoctoproject.lists.toaster |
|---|---|
| Message-ID | <[email protected]> |
From: Tim Orling <[email protected]> toastermain: try Path(os.environ.get('BUILDDIR') Developer: Tim Orling Reviewer: Alassane Yattara Signed-off-by: Tim Orling <[email protected]> Signed-off-by: Alassane Yattara <[email protected]> --- bitbake/lib/toaster/toastermain/logs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitbake/lib/toaster/toastermain/logs.py b/bitbake/lib/toaster/toastermain/logs.py index db5d459f9b..573fbef9e5 100644 --- a/bitbake/lib/toaster/toastermain/logs.py +++ b/bitbake/lib/toaster/toastermain/logs.py @@ -8,7 +8,7 @@ from pathlib import Path from django.http import HttpRequest #BASE_DIR = Path(__file__).resolve(strict=True).parent.parent -BUILDDIR = os.environ.get("BUILDDIR") +BUILDDIR = Path(os.environ.get('BUILDDIR')) def log_api_request(request, response, view, logger_name='api'): -- 2.34.1