From 48418be8ded9af2923f1e1a6bb366f904d600cc1 Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Thu, 11 Feb 2021 20:57:43 +0000 Subject: [PATCH] buildroot: rename path argument to rundir This matches the internal, "private", property and better describes what the variable is for. Additionally, make it into a proper keyword argument. --- osbuild/buildroot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osbuild/buildroot.py b/osbuild/buildroot.py index 826509bd..9a56f38d 100644 --- a/osbuild/buildroot.py +++ b/osbuild/buildroot.py @@ -59,10 +59,10 @@ class BuildRoot(contextlib.AbstractContextManager): only when exiting the context manager. """ - def __init__(self, root, runner, libdir, var, path="/run/osbuild"): + def __init__(self, root, runner, libdir, var, *, rundir="/run/osbuild"): self._exitstack = None self._rootdir = root - self._rundir = path + self._rundir = rundir self._vardir = var self._libdir = libdir self._runner = runner