check image type sanity in buildImage
This commit is contained in:
parent
4075949cb3
commit
08f4cdb853
1 changed files with 3 additions and 0 deletions
|
|
@ -6918,6 +6918,9 @@ class RootExports(object):
|
|||
Create an image using a kickstart file and group package list.
|
||||
"""
|
||||
|
||||
if img_type not in ('livecd', 'appliance'):
|
||||
raise koji.GenericError, 'Unrecognized image type: %s' % img_type
|
||||
|
||||
context.session.assertPerm(img_type)
|
||||
|
||||
taskOpts = {'channel': img_type}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue