From 568d85f0579eeda21a65d5dc34b7e1a30d317ca5 Mon Sep 17 00:00:00 2001 From: Jonathan Lebon Date: Mon, 18 Nov 2024 13:25:38 -0500 Subject: [PATCH] cmd-generate-release-meta: allow missing `base-oscontainer` Commit 21802b618 ("cmd-generate-release-meta: inject `oci-image` key in release metadata") broke the OKD pipeline which builds the OCI image, but doesn't push it using cosa. Down the line, this should resolve itself by having OKD and OCP's node image being built the same way as layered images. But for now let's relax the check here and just inject the OCI image information if it's available. --- src/cmd-generate-release-meta | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cmd-generate-release-meta b/src/cmd-generate-release-meta index 512178ee2e..c6040bb176 100755 --- a/src/cmd-generate-release-meta +++ b/src/cmd-generate-release-meta @@ -144,8 +144,8 @@ def append_build(out, input_): ensure_dup(input_, arch_dict, "ostree-commit", "commit") # we always expect base-oscontainer so error out if missing - assert 'base-oscontainer' in input_ - arch_dict['oci-image'] = populate_oci_image(input_['buildid'], input_['base-oscontainer']) + if 'base-oscontainer' in input_: + arch_dict['oci-image'] = populate_oci_image(input_['buildid'], input_['base-oscontainer']) platforms = ["aliyun", "applehv", "aws", "azure", "azurestack", "digitalocean", "exoscale", "gcp", "hyperv", "ibmcloud", "kubevirt", "metal", "nutanix", "openstack", "powervs", "qemu", "virtualbox", "vmware", "vultr", "qemu-secex"] for platform in platforms: