Skip to content

Commit

Permalink
Display autokarma and thresholds when the CLI prints updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
bowlofeggs committed Dec 9, 2016
1 parent 58e653d commit 17df9d5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bodhi/client/bindings.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,8 +426,10 @@ def update_str(self, update, minimal=False):
val += """ Release: %s
Status: %s
Type: %s
Karma: %d""" % (update['release']['long_name'], update['status'],
update['type'], update['karma'])
Karma: %d
Autokarma: %s [%d, %d]""" % (update['release']['long_name'], update['status'],
update['type'], update['karma'], update['autokarma'],
update['unstable_karma'], update['stable_karma'])
if update['request'] is not None:
val += "\n Request: %s" % update['request']
if len(update['bugs']):
Expand Down
1 change: 1 addition & 0 deletions bodhi/tests/client/test___init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
Status: stable
Type: bugfix
Karma: 0
Autokarma: True [-3, 3]
Notes: Update to 2.2.4. Release notes available at https://github.com
: /fedora-infra/bodhi/releases/tag/2.2.4
Submitter: bowlofeggs
Expand Down

0 comments on commit 17df9d5

Please sign in to comment.