Read koji event from config file

This can be useful for archiving configuration to freeze the koji
package set to a particular event.

JIRA: COMPOSE-3278
Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
Lubomír Sedlář 2019-02-26 10:39:59 +01:00
parent 42a8965e87
commit fa47d9edba
2 changed files with 2 additions and 1 deletions

View File

@ -784,6 +784,7 @@ def make_schema():
"pdc_insecure": {"deprecated": "Koji is queried instead"},
"koji_profile": {"type": "string"},
"koji_event": {"type": "number"},
"pkgset_koji_tag": {"$ref": "#/definitions/strings"},
"pkgset_koji_builds": {"$ref": "#/definitions/strings"},

View File

@ -119,7 +119,7 @@ class Compose(kobo.log.LoggingBase):
self.skip_phases = skip_phases or []
self.just_phases = just_phases or []
self.old_composes = old_composes or []
self.koji_event = koji_event
self.koji_event = koji_event or conf.get("koji_event")
self.notifier = notifier
# intentionally upper-case (visible in the code)