Changeset - 4188b49af031
[Not reviewed]
default
0 1 0
domruf - 9 years ago 2017-05-10 23:01:38
dominikruf@gmail.com
ldap_sync: change create_repo_group to create_group

Found by pylint.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
kallithea/bin/ldap_sync.py
Show inline comments
 
@@ -204,13 +204,13 @@ class LdapSync(object):
 
    def update_groups_from_ldap(self):
 
        """Add all the groups from LDAP to Kallithea."""
 
        added = existing = 0
 
        groups = self.ldap_client.get_groups()
 
        for group in groups:
 
            try:
 
                self.kallithea_api.create_repo_group(group)
 
                self.kallithea_api.create_group(group)
 
                added += 1
 
            except Exception:
 
                existing += 1
 

	
 
        return added, existing
 

	
0 comments (0 inline, 0 general)