Skip to content

Commit c50ddc5

Browse files
committed
agent-control: use relative path to the artifact dir
Since Python 3.12 tempfile.mkdtemp() returns an absolute path instead of a relative one which breaks the artifact landing page. Let's explicitly "relatify" it to get back the original behavior.
1 parent a4ccc87 commit c50ddc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

agent-control.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ def main():
453453
remote_ref = ""
454454

455455
# Setup artifacts storage
456-
artifacts_dir = tempfile.mkdtemp(prefix="artifacts_", dir=".")
456+
artifacts_dir = os.path.relpath(tempfile.mkdtemp(prefix="artifacts_", dir="."))
457457
ac.artifacts_storage = artifacts_dir
458458

459459
if not "centos-7-" in args.pool:

0 commit comments

Comments
 (0)