stages/oci-archive: make config optional in code

According to our schema `config` is optional but the code actually
accessed it unconditionally; fix that.
This commit is contained in:
Christian Kellner 2022-06-29 16:30:01 +02:00
parent b761188b98
commit a6e7070b13

View file

@ -278,7 +278,7 @@ def create_oci_dir(inputs, output_dir, options, create_time):
"created": created,
"architecture": architecture,
"os": "linux",
"config": config_from_options(options["config"]),
"config": config_from_options(options.get("config", {})),
"rootfs": {
"type": "layers",
"diff_ids": []