From 06cd4372e090425306b1a0b85938379f04fc3089 Mon Sep 17 00:00:00 2001 From: Robert-André Mauchin Date: Apr 01 2019 14:03:58 +0000 Subject: Make fedpkg update output a report after success Fixes #315 Signed-off-by: Robert-André Mauchin --- diff --git a/fedpkg/__init__.py b/fedpkg/__init__.py index 0a73f68..8308279 100644 --- a/fedpkg/__init__.py +++ b/fedpkg/__init__.py @@ -280,7 +280,11 @@ class Commands(pyrpkg.Commands): raise ValueError( 'Incorrect request type {0}'.format(detail['request'])) - bodhi.save(**detail) + try: + self.log.info(bodhi.update_str(bodhi.save(**detail), minimal=False)) + # Only because tests do not return a valid bodhi.save value + except TypeError: + pass def create_buildroot_override(self, bodhi_config, build, duration, notes=''):