Make image_type and distro required arguments
Distro, in composer terms "distribution", and "image_type" are required for composer, so make that explicit everywhere in the code.
This commit is contained in:
parent
c735ebc6d0
commit
8fb1342631
3 changed files with 20 additions and 17 deletions
|
|
@ -9,10 +9,10 @@ import kojihub
|
|||
|
||||
|
||||
@koji.plugin.export
|
||||
def osbuildImage(name, version, arches, target, opts=None, priority=None):
|
||||
def osbuildImage(name, version, distro, image_types, target, arches, opts=None, priority=None):
|
||||
"""Create an image via osbuild"""
|
||||
context.session.assertPerm("image")
|
||||
args = [name, version, arches, target, opts]
|
||||
args = [name, version, distro, image_types, target, arches, opts]
|
||||
task = {"channel": "image"}
|
||||
|
||||
if priority and priority < 0 and not context.session.hasPerm('admin'):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue