From 5d80aef6488110ea766b15f0965026d3bb923a58 Mon Sep 17 00:00:00 2001 From: Alex Iribarren Date: Nov 29 2023 15:45:56 +0000 Subject: [PATCH 1/2] Stop lowercasing the policy failure reason --- diff --git a/kojihub/kojihub.py b/kojihub/kojihub.py index 0e66791..0af19e6 100644 --- a/kojihub/kojihub.py +++ b/kojihub/kojihub.py @@ -9805,7 +9805,6 @@ def check_policy(name, data, default='deny', strict=False, force=False): parts = result.split(None, 1) parts.extend(['', '']) result, reason = parts[:2] - reason = reason.lower() lastrule = ruleset.last_rule() if context.opts.get('KojiDebug', False): logger.error( From cf5bab3ed3c2e1e78444affd8403454db9fd6e79 Mon Sep 17 00:00:00 2001 From: Alex Iribarren Date: Jan 24 2024 08:55:05 +0000 Subject: [PATCH 2/2] Lowercase result instead --- diff --git a/kojihub/kojihub.py b/kojihub/kojihub.py index 0af19e6..6e878fa 100644 --- a/kojihub/kojihub.py +++ b/kojihub/kojihub.py @@ -9805,6 +9805,7 @@ def check_policy(name, data, default='deny', strict=False, force=False): parts = result.split(None, 1) parts.extend(['', '']) result, reason = parts[:2] + result = result.lower() lastrule = ruleset.last_rule() if context.opts.get('KojiDebug', False): logger.error(