From cf6957dcc3b83e91dcd21196735ea7b76d1260a5 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Sun, 9 Jan 2022 21:15:39 +0100 Subject: [PATCH] copr-builder: s390x: better matching prod/dev instances Seems we have sometimes "-", sometimes "_", depending in which situation the subscription-manager process fails :-(. --- .../backend/templates/cleanup-unused-redhat-subscriptions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/copr/backend/templates/cleanup-unused-redhat-subscriptions b/roles/copr/backend/templates/cleanup-unused-redhat-subscriptions index db1429f4e5..38c43a3fd0 100644 --- a/roles/copr/backend/templates/cleanup-unused-redhat-subscriptions +++ b/roles/copr/backend/templates/cleanup-unused-redhat-subscriptions @@ -89,9 +89,9 @@ def filter_out_systems(systems): copr_instance = _copr_instance() for system in systems: system_instance = "unknown" - if "-prod-" in system["name"]: + if "prod" in system["name"]: system_instance = "production" - elif "-dev-" in system["name"]: + elif "dev" in system["name"]: system_instance = "devel" if system_instance != copr_instance: