@@ -71,7 +71,7 @@ def run(operation, filereport, repo, user, group, grant, backupfilepath, repoall
71
71
answer = input ("This command will change/create the group '{}' with permission '{}' for repo '{}', are you sure? yes/no " .format (group , grant ,repo ))
72
72
if 'yes' in answer :
73
73
print ("run on repo {}" .format (repo ))
74
- # setRepoGroupPermissions(ac, group.lower(), repo, grant)
74
+ setRepoGroupPermissions (ac , group .lower (), repo , grant )
75
75
else :
76
76
# Single request doesn't not work as expected so I need to iterate over the group repos
77
77
ac .connect ()
@@ -80,7 +80,7 @@ def run(operation, filereport, repo, user, group, grant, backupfilepath, repoall
80
80
repos = listgroup_repos (ac , group .lower ())
81
81
for repo in repos :
82
82
print ("run on repo {}" .format (repo ))
83
- # setRepoGroupPermissions(ac, group.lower(), repo, grant)
83
+ setRepoGroupPermissions (ac , group .lower (), repo , grant )
84
84
if operation == 'groupinfo' :
85
85
ac .connect ()
86
86
group_info (ac , group .lower (), filereport )
@@ -98,7 +98,7 @@ def run(operation, filereport, repo, user, group, grant, backupfilepath, repoall
98
98
s_repo = item ['repo' ].strip ()
99
99
s_grant = item ['permission' ].strip ()
100
100
print ("set {1} on repo {0}" .format (s_repo , s_grant ))
101
- # setRepoGroupPermissions(ac, group.lower(), s_repo, s_grant)
101
+ setRepoGroupPermissions (ac , group .lower (), s_repo , s_grant )
102
102
else :
103
103
error ("wrong backup file" )
104
104
0 commit comments