formats: move pipeline description here

The description of a pipeline is format dependent and thus needs
to be located at the specific format module.
Temporarily remove two tests; they should be added back to a format
specific test suit.
This commit is contained in:
Christian Kellner 2020-12-16 18:18:19 +01:00 committed by Tom Gundersen
parent a13783f67b
commit 4ab52c3764
4 changed files with 33 additions and 59 deletions

View file

@ -127,7 +127,7 @@ def osbuild_cli():
return 1
if args.inspect:
result = {"pipeline": pipeline.description(with_id=True)}
result = {"pipeline": fmt.describe(pipeline, with_id=True)}
if manifest.get("sources_options"):
result["sources"] = manifest["sources_options"]
json.dump(result, sys.stdout)