Rely on ozif_enabled switch in BaseImageTask
Fixes: https://pagure.io/koji/issue/1345
This commit is contained in:
parent
0ed215ca53
commit
47ed809a8a
1 changed files with 3 additions and 0 deletions
|
|
@ -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 = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue