From 37a88310c29698954ded375fb734dcd02283a9a9 Mon Sep 17 00:00:00 2001 From: Tomas Kopecek Date: Thu, 31 Oct 2019 16:22:16 +0100 Subject: [PATCH] allow comma/space delimiter for allowed_methods Example config says, that comma is allowed, but it was not true. Fixes: https://pagure.io/koji/issue/1744 --- plugins/hub/save_failed_tree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/hub/save_failed_tree.py b/plugins/hub/save_failed_tree.py index 863e8423..bb1f262d 100644 --- a/plugins/hub/save_failed_tree.py +++ b/plugins/hub/save_failed_tree.py @@ -29,7 +29,7 @@ def saveFailedTree(buildrootID, full=False, **opts): # read configuration only once if config is None: config = koji.read_config_files([(CONFIG_FILE, True)]) - allowed_methods = config.get('permissions', 'allowed_methods').split() + allowed_methods = config.get('permissions', 'allowed_methods').split(',') if len(allowed_methods) == 1 and allowed_methods[0] == '*': allowed_methods = '*'