Save modules metadata as full yaml object

Signed-off-by: Jan Kaluza <jkaluza@redhat.com>
This commit is contained in:
Jan Kaluza 2017-03-27 15:28:18 +02:00
parent 9fcd71f831
commit 1575ed28ea

View File

@ -186,7 +186,7 @@ def create_variant_repo(compose, arch, variant, pkg_type):
import yaml import yaml
modules = {"modules": []} modules = {"modules": []}
for mmd in variant.mmds: for mmd in variant.mmds:
modules["modules"].append(mmd.dumps()) modules["modules"].append(yaml.safe_load(mmd.dumps()))
tmp_dir = compose.mkdtemp(prefix="pungi_") tmp_dir = compose.mkdtemp(prefix="pungi_")
modules_path = os.path.join(tmp_dir, "modules.yaml") modules_path = os.path.join(tmp_dir, "modules.yaml")
with open(modules_path, "w") as outfile: with open(modules_path, "w") as outfile: