From 17df9d59551b1f1b64977129f591ae2863562546 Mon Sep 17 00:00:00 2001 From: Randy Barlow Date: Tue, 6 Dec 2016 13:46:23 -0500 Subject: [PATCH] Display autokarma and thresholds when the CLI prints updates. --- bodhi/client/bindings.py | 6 ++++-- bodhi/tests/client/test___init__.py | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/bodhi/client/bindings.py b/bodhi/client/bindings.py index 3dc63616bd..bb875a3021 100644 --- a/bodhi/client/bindings.py +++ b/bodhi/client/bindings.py @@ -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']): diff --git a/bodhi/tests/client/test___init__.py b/bodhi/tests/client/test___init__.py index 4490b9a36c..b4e092c23d 100644 --- a/bodhi/tests/client/test___init__.py +++ b/bodhi/tests/client/test___init__.py @@ -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