add image tasks to method filter

This commit is contained in:
Jay Greguske 2013-12-10 16:38:42 -05:00 committed by Mike McLean
parent 6dcd55e736
commit dce981825a

View file

@ -430,11 +430,13 @@ _TASKS = ['build',
'livecd',
'createLiveCD',
'appliance',
'createAppliance']
'createAppliance',
'image',
'createImage']
# Tasks that can exist without a parent
_TOPLEVEL_TASKS = ['build', 'buildNotification', 'chainbuild', 'maven', 'wrapperRPM', 'winbuild', 'newRepo', 'tagBuild', 'tagNotification', 'waitrepo', 'livecd', 'appliance']
_TOPLEVEL_TASKS = ['build', 'buildNotification', 'chainbuild', 'maven', 'wrapperRPM', 'winbuild', 'newRepo', 'tagBuild', 'tagNotification', 'waitrepo', 'livecd', 'appliance', 'image']
# Tasks that can have children
_PARENT_TASKS = ['build', 'chainbuild', 'maven', 'winbuild', 'newRepo', 'wrapperRPM', 'livecd', 'appliance']
_PARENT_TASKS = ['build', 'chainbuild', 'maven', 'winbuild', 'newRepo', 'wrapperRPM', 'livecd', 'appliance', 'image']
def tasks(environ, owner=None, state='active', view='tree', method='all', hostID=None, channelID=None, start=None, order='-id'):
values = _initValues(environ, 'Tasks', 'tasks')