From 72e00f3f2b9b40762d215cf9b3b6cabbf9707941 Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Wed, 10 Jun 2020 12:04:53 +0200 Subject: [PATCH] pipeline: pass meta data to stages & assemblers Pass a new `meta` object to the stages and assemblers that for now only contains the `id` of the corresponding stage or assembler. --- osbuild/pipeline.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/osbuild/pipeline.py b/osbuild/pipeline.py index 02f93650..20c0d7a3 100644 --- a/osbuild/pipeline.py +++ b/osbuild/pipeline.py @@ -84,6 +84,9 @@ class Stage: "tree": "/run/osbuild/tree", "sources": "/run/osbuild/sources", "options": self.options, + "meta": { + "id": self.id + } } ro_binds = [f"{sources_output}:/run/osbuild/sources"] @@ -136,6 +139,9 @@ class Assembler: args = { "tree": "/run/osbuild/tree", "options": self.options, + "meta": { + "id": self.id + } } binds = []