copr-backend: match prod/dev instances with "commas"

Complements: 07c54f11e2
This commit is contained in:
Pavel Raiskup 2022-01-09 21:09:24 +01:00
parent 24a2466b06
commit 47e95419ec

View file

@ -89,9 +89,9 @@ def filter_out_systems(systems):
copr_instance = _copr_instance() copr_instance = _copr_instance()
for system in systems: for system in systems:
system_instance = "unknown" system_instance = "unknown"
if "_prod_" in system["name"]: if "-prod-" in system["name"]:
system_instance = "production" system_instance = "production"
elif "_dev_" in system["name"]: elif "-dev-" in system["name"]:
system_instance = "devel" system_instance = "devel"
if system_instance != copr_instance: if system_instance != copr_instance: