Skip to content

Commit

Permalink
Fix parameter type (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
hluk committed Dec 8, 2022
1 parent be9fb48 commit f0cf15a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion greenwave/policies.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f0cf15a

Please sign in to comment.