CLI for save_failed_tree
This commit is contained in:
parent
a5131cec91
commit
437afbb720
5 changed files with 182 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue