Note: The default ITS GitLab runner is a shared resource and is subject to slowdowns during heavy usage.
You can run your own GitLab runner that is dedicated just to your group if you need to avoid processing delays.

Commit 6d6570b7 authored by Rob Carleski's avatar Rob Carleski 🇮🇸
Browse files

Change fetch_group to only accept exact matches

parent 0d8824e5
......@@ -128,14 +128,15 @@ class Client:
if r.status_code ==
data = r.json()
if data[0]['person']:
return 'uid={},ou=people,dc=umich,dc=edu'.format(
elif data[0]['group']:
return data[0]['dn'].lower()
raise ValueError('Entity found but unidentifiable.')
for _ in data:
if _['person']:
if _['naming'] == name:
return _['dn']
elif _['group']:
if _['displayName'] == name:
return _['dn']
raise Exception('Unable to find matching entity.')
def _apply_update(self, endpoint):
"""Generic update function
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment