copr-builder: s390x: better matching prod/dev instances

Seems we have sometimes "-", sometimes "_", depending in which situation
the subscription-manager process fails :-(.
This commit is contained in:
Pavel Raiskup 2022-01-09 21:15:39 +01:00
parent 47e95419ec
commit cf6957dcc3

View file

@ -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: