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: