#1097 hub: [getTaskInfo] add strict behavior
Closed 5 years ago by mikem. Opened 5 years ago by julian8628.
julian8628/koji issue/1079  into  master

file modified
+2 -2
@@ -10526,14 +10526,14 @@ 

          task = Task(taskId)

          return task.getResult(raise_fault=raise_fault)

  

-     def getTaskInfo(self, task_id, request=False):

+     def getTaskInfo(self, task_id, request=False, strict=False):

          """Get information about a task"""

          single = True

          if isinstance(task_id, (list, tuple)):

              single = False

          else:

              task_id = [task_id]

-         ret = [Task(id).getInfo(False, request) for id in task_id]

+         ret = [Task(id).getInfo(strict, request) for id in task_id]

          if single:

              return ret[0]

          else:

rebased onto 069a06f

5 years ago

Metadata Update from @tkopecek:
- Pull-request tagged with: testing-ready

5 years ago

PR #1097 was merged in September, but Pagure did not close this, probably due to this issue

Pull-Request has been closed by mikem

5 years ago