From 70634d75782db3969667d4e71c7cbd30ae3f8bc4 Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Mon, 6 Dec 2021 16:00:43 +0000 Subject: [PATCH] pipeline: rename stage_timeout in Stage.run Rename the `stage_timeout` paramter for the `Stage.run` method to just `timeout`. It is clear from the context that this is the stage timeout now. --- osbuild/pipeline.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osbuild/pipeline.py b/osbuild/pipeline.py index 75561df3..b1953133 100644 --- a/osbuild/pipeline.py +++ b/osbuild/pipeline.py @@ -114,7 +114,7 @@ class Stage: with open(location, "w", encoding="utf-8") as fp: json.dump(args, fp) - def run(self, tree, runner, build_tree, store, monitor, libdir, stage_timeout=None): + def run(self, tree, runner, build_tree, store, monitor, libdir, timeout=None): with contextlib.ExitStack() as cm: build_root = buildroot.BuildRoot(build_tree, runner, libdir, store.tmp) @@ -195,7 +195,7 @@ class Stage: r = build_root.run([f"/run/osbuild/bin/{self.name}"], monitor, - timeout=stage_timeout, + timeout=timeout, binds=binds, readonly_binds=ro_binds)