From 57ccf403e170304f2209711877ae0b6ab88ba473 Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Fri, 29 Jan 2021 16:55:19 +0000 Subject: [PATCH] formats/v1: use new Stage.add_input Instead of manually constructing and appending the input for stages (here the stages that replace the assembler), use the new `Stage.add_input` method. --- osbuild/formats/v1.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/osbuild/formats/v1.py b/osbuild/formats/v1.py index c66bcddb..3da4ec02 100644 --- a/osbuild/formats/v1.py +++ b/osbuild/formats/v1.py @@ -2,7 +2,6 @@ from typing import Dict, Optional, Tuple from osbuild.meta import Index, ValidationResult -from ..inputs import Input from ..pipeline import Manifest, Pipeline, detect_host_runner @@ -64,9 +63,8 @@ def load_assembler(description: Dict, index: Index, manifest: Manifest): stage = pipeline.add_stage(info, options, {}) info = index.get_module_info("Input", "org.osbuild.tree") - ip = Input(info, "org.osbuild.pipeline", {}) + ip = stage.add_input("tree", info, "org.osbuild.pipeline") ip.add_reference(base) - stage.inputs = {"tree": ip} return pipeline