#2586 cli: some options are not supplied in all _list_tasks calls
Merged 2 years ago by tkopecek. Opened 2 years ago by tkopecek.
tkopecek/koji issue2585  into  master

file modified
+3 -3
@@ -757,12 +757,12 @@ 

      callopts = {

          'decode': True,

      }

-     if not options.all:

+     if not getattr(options, 'all', False):

          callopts['state'] = [koji.TASK_STATES[s] for s in ('FREE', 'OPEN', 'ASSIGNED')]

  

-     if options.after:

+     if getattr(options, 'after', False):

          callopts['startedAfter'] = options.after

-     if options.before:

+     if getattr(options, 'before', False):

          callopts['startedBefore'] = options.before

  

      if getattr(options, 'mine', False):

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

2 years ago

rebased onto b921489

2 years ago

Metadata Update from @jcupova:
- Pull-request tagged with: testing-done

2 years ago

Commit 362a216 fixes this pull-request

Pull-Request has been merged by tkopecek

2 years ago