Invalidate excuse after each policy run

This fixes commit 497edc to really allow policies to see if the excuse has
already been invalidated by previous policies.
pre-rebase-2016-12-12
Robert Bruce Park 8 years ago committed by Martin Pitt
parent 497edc6d6c
commit 4bde6d48cd

@ -1616,9 +1616,8 @@ class Britney(object):
v = policy.apply_policy(policy_info, suite, src, source_t, source_u, excuse) v = policy.apply_policy(policy_info, suite, src, source_t, source_u, excuse)
if v.value > policy_verdict.value: if v.value > policy_verdict.value:
policy_verdict = v policy_verdict = v
if policy_verdict.is_rejected:
if policy_verdict.is_rejected: excuse.is_valid = False
excuse.is_valid = False
if suite in ('pu', 'tpu') and source_t: if suite in ('pu', 'tpu') and source_t:
# o-o-d(ish) checks for (t-)p-u # o-o-d(ish) checks for (t-)p-u

Loading…
Cancel
Save