From 36c7d08f6e43a1bacc4b7bdda7af59381257f9cd Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Thu, 11 Mar 2021 21:59:17 +0000 Subject: [PATCH] inputs/ostree: use ostree prefix for temp dir Use `ostree-ouput` instead of `files-output` as prefix for the temporary directory prefix. Also fix the description of the "origin" to reflect that pipeline and source origins are supported. Additionally remove some dead code. --- inputs/org.osbuild.ostree | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/inputs/org.osbuild.ostree b/inputs/org.osbuild.ostree index f374d35b..34625d5a 100755 --- a/inputs/org.osbuild.ostree +++ b/inputs/org.osbuild.ostree @@ -28,7 +28,7 @@ SCHEMA = """ "enum": ["org.osbuild.ostree"] }, "origin": { - "description": "The origin of the input (must be 'org.osbuild.source')", + "description": "The origin of the input (pipeline or source)", "type": "string", "enum": ["org.osbuild.source", "org.osbuild.pipeline"] }, @@ -108,8 +108,7 @@ def main(): origin = args["origin"] store = StoreClient(connect_to=args["api"]["store"]) - source = store.source("org.osbuild.files") - output = store.mkdtemp(prefix="files-output") + output = store.mkdtemp(prefix="ostree-output") if origin == "org.osbuild.pipeline": for ref, options in refs.items():