From 399a4e5b5f207dd9ab12abf5c1548084d867b38e Mon Sep 17 00:00:00 2001 From: Anjan Nath Date: Thu, 14 May 2026 13:49:49 +0530 Subject: [PATCH] snc: update the AMI regex to remove `-` after arch in the first region where the AMI is uploaded the AMI name don't contain the region suffix and no separator in all the other regions where the AMI is copied from the first region it contains the region as suffix and a `-` added before it to the AMI name, the new regex will handle both the variants Signed-off-by: Anjan Nath --- pkg/provider/aws/action/snc/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/provider/aws/action/snc/constants.go b/pkg/provider/aws/action/snc/constants.go index 6436e2954..4d6492136 100644 --- a/pkg/provider/aws/action/snc/constants.go +++ b/pkg/provider/aws/action/snc/constants.go @@ -8,7 +8,7 @@ var ( // This is managed by https://github.com/devtools-qe-incubator/cloud-importer amiProduct = "Linux/UNIX" // amiProductDescription = "Red Hat Enterprise Linux" - amiRegex = "openshift-local-%s-%s-*" + amiRegex = "openshift-local-%s-%s*" amiUserDefault = "core" amiOwner = "391597328979" // amiOriginRegion = "us-east-1"