From 4cc7cdbe0851a28fabc9ed99b2aa19ff79489e25 Mon Sep 17 00:00:00 2001 From: Fabian Arrotin Date: Jun 21 2018 13:18:08 +0000 Subject: Changed logic to have RCM group a variable in pagure.cfg --- diff --git a/centos_auth.py b/centos_auth.py index 8c59b0f..a553bf7 100644 --- a/centos_auth.py +++ b/centos_auth.py @@ -104,9 +104,10 @@ class CentOSAuth(Gitolite3Auth): ) ) pnt_access = [] + pnt_group = _config.get('RCM_GROUP') for branch in _config.get( 'PNT_BRANCHES', _config.get('SUPPORTED_BRANCHES', [])): - pnt_access.append(' RWC %s = @pnt' % branch) + pnt_access.append(' RWC %s = @%s' % (branch,pnt_group)) config.extend(pnt_access) # Then, blacklist a pattern over that (after). config.append(_blacklist)