if not self.allow_build_by_event(ArtifactType.IMAGE, event):
instead of
if not event.manual and not self.allow_build(
ArtifactType.IMAGE,
advisory_name=event.errata_name,
advisory_security_impact=event.security_impact):
and be sure we always get the right criteria with right key names everytime and in case we add new key name later, we just do that in single place in events.py.
This allows us to do
instead of
and be sure we always get the right criteria with right key names everytime and in case we add new key name later, we just do that in single place in
events.py.