From patchwork Thu Oct 26 14:12:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alassane Yattara X-Patchwork-Id: 32977 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 428E1C25B48 for ; Thu, 26 Oct 2023 14:13:07 +0000 (UTC) Received: from mail.savoirfairelinux.com (mail.savoirfairelinux.com [208.88.110.44]) by mx.groups.io with SMTP id smtpd.web11.71695.1698329583497741775 for ; Thu, 26 Oct 2023 07:13:03 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@savoirfairelinux.com header.s=DFC430D2-D198-11EC-948E-34200CB392D2 header.b=Wu3z+tm6; spf=pass (domain: savoirfairelinux.com, ip: 208.88.110.44, mailfrom: alassane.yattara@savoirfairelinux.com) Received: from localhost (localhost [127.0.0.1]) by mail.savoirfairelinux.com (Postfix) with ESMTP id D0A0A9C279D; Thu, 26 Oct 2023 10:13:02 -0400 (EDT) Received: from mail.savoirfairelinux.com ([127.0.0.1]) by localhost (mail.savoirfairelinux.com [127.0.0.1]) (amavis, port 10032) with ESMTP id 1MsvZYoDZINO; Thu, 26 Oct 2023 10:13:02 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mail.savoirfairelinux.com (Postfix) with ESMTP id 4EE9E9C2BF6; Thu, 26 Oct 2023 10:13:02 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.savoirfairelinux.com 4EE9E9C2BF6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=savoirfairelinux.com; s=DFC430D2-D198-11EC-948E-34200CB392D2; t=1698329582; bh=VVGjltAFHNtRNQNKFfHWAfDN6tWxVLONawhl/DkVzt4=; h=From:To:Date:Message-Id:MIME-Version; b=Wu3z+tm69lybZM9P1H9MzqOTaLwra9/5CM2qnO8rZIs1NAq5FsaDs0V2xhT9ptXLi cqtcRBkWjjp2nJvpUq5QvFo+aXKv8KrJOFhsBOCV6d5pSuHtbbVsoaHMEYAl2Zuluh AP/bLmESxqphJ97ZtUh1VnOjlxxeGNeNi8OGBC/hudx5GoyxOAjIEXysGW/WdQ0PkJ JuRZ39DqvOW1BtwnwsfOeNA3JSjA7c8XRaZhcV9e4JVSOeW5wsGcU8sSwAWTXVqlG5 vptzQ12GyAEnXyqccRRo8UpTIAcPj7G6CGAfhtuXrNaA3PP8LHYGkQFBdO68zPCreQ qrB9rW1TUM2EA== X-Virus-Scanned: amavis at mail.savoirfairelinux.com Received: from mail.savoirfairelinux.com ([127.0.0.1]) by localhost (mail.savoirfairelinux.com [127.0.0.1]) (amavis, port 10026) with ESMTP id jVgP1FCppRC9; Thu, 26 Oct 2023 10:13:02 -0400 (EDT) Received: from jedi.. (unknown [196.127.183.75]) by mail.savoirfairelinux.com (Postfix) with ESMTPSA id 69CAE9C2BD5; Thu, 26 Oct 2023 10:13:01 -0400 (EDT) From: Alassane Yattara To: toaster@lists.yoctoproject.org Cc: Tim Orling , Alassane Yattara Subject: [PATCH v2 2/3] Toaster: Bug-fix logging permission error in docker Date: Thu, 26 Oct 2023 15:12:48 +0100 Message-Id: <20231026141249.799473-2-alassane.yattara@savoirfairelinux.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231026141249.799473-1-alassane.yattara@savoirfairelinux.com> References: <20231026141249.799473-1-alassane.yattara@savoirfairelinux.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 26 Oct 2023 14:13:07 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/toaster/message/5893 From: Tim Orling toastermain: try Path(os.environ.get('BUILDDIR') Developer: Tim Orling Reviewer: Alassane Yattara Signed-off-by: Tim Orling Signed-off-by: Alassane Yattara --- 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'):