From 76f33a5fc2936751d32f193a3840c885ba97ed89 Mon Sep 17 00:00:00 2001 From: Ivo De Decker Date: Wed, 28 Aug 2019 22:57:11 +0000 Subject: [PATCH] switch piuparts policy to detailed excuse info --- britney2/policies/policy.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/britney2/policies/policy.py b/britney2/policies/policy.py index 9615526..a48b27d 100644 --- a/britney2/policies/policy.py +++ b/britney2/policies/policy.py @@ -729,7 +729,10 @@ class PiupartsPolicy(BasePolicy): if url is not None: piuparts_info['piuparts-test-url'] = url - excuse.addhtml(msg) + if result.is_rejected: + excuse.add_verdict_info(result, msg) + else: + excuse.addinfo(msg) if result.is_rejected: for ignore_hint in self.hints.search('ignore-piuparts', @@ -739,7 +742,7 @@ class PiupartsPolicy(BasePolicy): 'issued-by': ignore_hint.user } result = PolicyVerdict.PASS_HINTED - excuse.addhtml("Ignoring piuparts issue as requested by {0}".format(ignore_hint.user)) + excuse.addinfo("Ignoring piuparts issue as requested by {0}".format(ignore_hint.user)) break return result