From b0e193d95545b9fad2b01d7755e7830c8f0b2f53 Mon Sep 17 00:00:00 2001 From: Niels Thykier Date: Sun, 5 Aug 2018 06:56:49 +0000 Subject: [PATCH] Add missing @property - otherwise "verdict.is_blocked" is always True Signed-off-by: Niels Thykier --- britney2/policies/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/britney2/policies/__init__.py b/britney2/policies/__init__.py index 37bcc9b..16e564d 100644 --- a/britney2/policies/__init__.py +++ b/britney2/policies/__init__.py @@ -43,6 +43,7 @@ class PolicyVerdict(Enum): def is_rejected(self): return True if self.name.startswith('REJECTED') else False + @property def is_blocked(self): """Whether the item (probably) needs a fix or manual assistance to migrate""" return self in {