From 47e95419ecb7b463782a56006e8a38fabbfe3e05 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Sun, 9 Jan 2022 21:09:24 +0100 Subject: [PATCH] copr-backend: match prod/dev instances with "commas" Complements: 07c54f11e247cbd761075316438f0d8aee911065 --- .../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 3b53cbd99d..db1429f4e5 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: