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 2c32ad8e authored by Paul Arthur's avatar Paul Arthur
Browse files

Fix logic to match previous

parent 2f4c3442
Pipeline #8362 passed with stage
in 25 seconds
......@@ -169,8 +169,9 @@ class MCommGroup:
"""
self.dn = core.get_entity_dn(self.client, self.name)
if not self.dn:
raise core.MCommError('Unable to fetch fresh group data')
return
# Updated data isn't always available immediately, so try to loop
# for a bit if we don't see any change.
......@@ -200,6 +201,9 @@ class MCommGroup:
if i < 4:
sleep(2**i)
if not getattr(self, 'group_hash', None):
raise core.MCommError('Unable to fetch fresh group data')
group['objectClass'] = [x.lower() for x in group['objectClass']]
if 'umichgroup' not in group['objectClass']:
raise core.MCommError(
......
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