rename image tasks to follow existing conventions
This commit is contained in:
parent
51d8ca7d52
commit
07c7ba9e79
2 changed files with 3 additions and 10 deletions
|
|
@ -1751,7 +1751,7 @@ class BuildImageTask(BaseTaskHandler):
|
|||
|
||||
|
||||
class BuildApplianceTask(BuildImageTask):
|
||||
Methods = ['buildAppliance']
|
||||
Methods = ['appliance']
|
||||
|
||||
def handler(self, name, version, arch, target, ksfile, opts=None):
|
||||
"""Governing task for building an appliance"""
|
||||
|
|
@ -1815,7 +1815,7 @@ class BuildApplianceTask(BuildImageTask):
|
|||
results['name'])
|
||||
|
||||
class BuildLiveCDTask(BuildImageTask):
|
||||
Methods = ['buildLiveCD']
|
||||
Methods = ['livecd']
|
||||
|
||||
def handler(self, name, version, arch, target, ksfile, opts=None):
|
||||
"""Governing task for building an appliance"""
|
||||
|
|
|
|||
|
|
@ -6827,14 +6827,7 @@ class RootExports(object):
|
|||
|
||||
taskOpts['priority'] = koji.PRIO_DEFAULT + priority
|
||||
|
||||
if img_type == 'livecd':
|
||||
task_type = 'buildLiveCD'
|
||||
elif img_type == 'appliance':
|
||||
task_type = 'buildAppliance'
|
||||
else:
|
||||
raise koji.GenericError, 'unsupported image type: %s' % img_type
|
||||
|
||||
return make_task(task_type, [name, version, arch, target, ksfile, opts], **taskOpts)
|
||||
return make_task(img_type, [name, version, arch, target, ksfile, opts], **taskOpts)
|
||||
|
||||
# Database access to get imageinfo values. Used in parts of kojiweb.
|
||||
#
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue