#940 Add --enabled --ready filters for list-channels
Merged by mikem. Opened by tkopecek.
tkopecek/koji issue939  into  master

Download 940.patch

Fixes: https://pagure.io/koji/issue/939

see my comments in #939

1 new commit added

  • display more info

rebased onto 990a78f762d1d86d8af93d143a84bf29fb7b4a97

Looks good, but needs a unit test update

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/mock/mock.py", line 1305, in patched
    return func(*args, **keywargs)
  File "/home/mike/Devel/koji/koji/tests/test_cli/test_list_channels.py", line 27, in test_list_channels
    anon_handle_list_channels(self.options, self.session, self.args)
  File "/home/mike/Devel/koji/koji/cli/koji_cli/commands.py", line 2716, in anon_handle_list_channels
    channel['enabled'] = len([x for x in hosts if x['enabled']])
TypeError: 'int' object has no attribute '__getitem__'

1 new commit added

  • fix test

Test fixed, btw, jenkins is behaving randomly these days, so most tests are not run :-(

Commit f3b4af07 fixes this pull-request

Pull-Request has been merged by mikem

Metadata