From 59df6eb323164eb035c93feb1cf150548099fe53 Mon Sep 17 00:00:00 2001 From: Mike McLean Date: Mar 15 2019 14:27:36 +0000 Subject: PR#1346: Rely on ozif_enabled switch in BaseImageTask Merges #1346 https://pagure.io/koji/pull-request/1346 Fixes: #1345 https://pagure.io/koji/issue/1345 Missed ImageFactory detection --- diff --git a/builder/kojid b/builder/kojid index 1e600eb..08584a7 100755 --- a/builder/kojid +++ b/builder/kojid @@ -4122,6 +4122,9 @@ class BaseImageTask(OzImageTask): return {'image': newimg} def handler(self, name, version, release, arch, target_info, build_tag, repo_info, inst_tree, opts=None): + if not ozif_enabled: + self.logger.error("ImageFactory features require the following dependencies: pykickstart, imagefactory, oz and possibly python-hashlib") + raise koji.ApplianceError('ImageFactory functions not available') if opts == None: opts = {}