From f0cf15a51222f462f195dc9972cda2c889d83671 Mon Sep 17 00:00:00 2001 From: Lukas Holecek Date: Thu, 8 Dec 2022 16:39:09 +0100 Subject: [PATCH] Fix parameter type (#115) --- greenwave/policies.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/greenwave/policies.py b/greenwave/policies.py index 748e2969..0b03bcb7 100644 --- a/greenwave/policies.py +++ b/greenwave/policies.py @@ -688,7 +688,7 @@ def check(self, policy, rule_context): if self.valid_since or self.valid_until: koji_url = current_app.config["KOJI_BASE_URL"] subject_creation_time = greenwave.resources.retrieve_koji_build_creation_time( - rule_context.subject, koji_url) + rule_context.subject.identifier, koji_url) if self.valid_since and subject_creation_time < self.valid_since: return [] if self.valid_until and self.valid_until <= subject_creation_time: