From 7b891562d261b8619d7084a8359d6b2bfe2bc107 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Fri, 14 Feb 2020 11:45:21 +0100 Subject: [PATCH] Update the configuration so no more manual changes after branching are needed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Patch from Miro HronĨok submitted upstream at: https://pagure.io/fedora-ci/simple-koji-ci/pull-request/36 Signed-off-by: Pierre-Yves Chibon --- roles/simple-koji-ci/templates/simple_koji_ci.py | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/roles/simple-koji-ci/templates/simple_koji_ci.py b/roles/simple-koji-ci/templates/simple_koji_ci.py index 987eab643d..613fe3709e 100644 --- a/roles/simple-koji-ci/templates/simple_koji_ci.py +++ b/roles/simple-koji-ci/templates/simple_koji_ci.py @@ -1,3 +1,9 @@ +class TargetTagsDict(dict): + """A dict that returns the key for missing values""" + def __missing__(self, key): + return key + + config = { 'simple-koji-ci.enabled': True, @@ -23,15 +29,7 @@ config = { 'krb_sessionopts': {'timeout': 3600, 'krb_rdns': False}, 'opts': {'scratch': True}, 'priority': 30, - 'target_tags': { - 'master': 'rawhide', - 'f31': 'f31', - 'f30': 'f30', - 'f29': 'f29', - 'epel7': 'epel7', - 'el6': 'el6', - } - + 'target_tags': TargetTagsDict(master='rawhide'), }, "simple-koji-ci.cache": {