Extend ACL checks to OpenStack namespace.
Change-Id: I0ac6ee99391f218fa467b58bf39934c6c68d1808
This commit is contained in:
parent
40b786bf55
commit
af09d7ca4b
@ -25,7 +25,7 @@ function check_team_acl {
|
||||
}
|
||||
|
||||
# Add more namespaces here, if necessary
|
||||
for namespace in stackforge openstack-dev; do
|
||||
for namespace in stackforge openstack openstack-dev; do
|
||||
check_team_acl "${CONFIGS_LIST_BASE}${namespace}"
|
||||
done
|
||||
|
||||
|
@ -111,14 +111,26 @@ if '6' in transformations:
|
||||
acl[section] = newsection
|
||||
|
||||
if '7' in transformations:
|
||||
special_teams = ("core", "milestone", "Users", "admins")
|
||||
special_projects = (
|
||||
'ossa',
|
||||
)
|
||||
special_teams = (
|
||||
'admins',
|
||||
'committee',
|
||||
'core',
|
||||
'maint',
|
||||
'Managers',
|
||||
'milestone',
|
||||
'Users',
|
||||
)
|
||||
for section in acl.keys():
|
||||
newsection = []
|
||||
for option in acl[section]:
|
||||
if ("refs/heads" in section and "group" in option
|
||||
and "-2..+2" in option
|
||||
and not any(x in option for x in special_teams)):
|
||||
option = "%s%s" % (option, "-core")
|
||||
if ('refs/heads' in section and 'group' in option
|
||||
and '-2..+2' in option
|
||||
and not any(x in option for x in special_teams)
|
||||
and not any(x in aclfile for x in special_projects)):
|
||||
option = '%s%s' % (option, '-core')
|
||||
newsection.append(option)
|
||||
acl[section] = newsection
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user