CLI for save_failed_tree

This commit is contained in:
Tomas Kopecek 2016-10-26 12:52:19 +02:00 committed by Mike McLean
parent a5131cec91
commit 437afbb720
5 changed files with 182 additions and 3 deletions

View file

@ -1,14 +1,19 @@
import sys
import koji
from koji.plugin import export
import sys
sys.path.insert(0, '/usr/share/koji-hub/')
import kojihub
__all__ = ('saveFailedTree',)
@export
def saveFailedTree(taskID, full=False, **opts):
'''xmlrpc method for creating saveFailedTree task. If arguments are
invalid, error message is returned. Otherwise task id of newly created
task is returned.'''
# let it raise errors
taskID = int(taskID)
full = bool(full)