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 1029a73b authored by Rob Carleski's avatar Rob Carleski 🇮🇸
Browse files

Only try to remove the control group if it's currently a member

parent 8f63e682
......@@ -285,7 +285,8 @@ https://documentation.its.umich.edu/node/339/
)
if self.service in ['google', 'both']:
mcomm_group.externalMembers.append(_ext_addr)
mcomm_group.memberGroups.remove(_control_group)
if _control_group in mcomm_group.memberGroups:
mcomm_group.memberGroups.remove(_control_group)
mcomm_group.update_membership()
except mcommunity.core.MCommError as e:
self.logger.warning(e, extra={'entity': self.account})
......
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