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

Check for external member before trying to update membership

parent 374631c2
......@@ -288,7 +288,8 @@ https://documentation.its.umich.edu/node/339/
extra={'entity': self.account}
)
if self.service in ['google', 'both']:
self.mcomm_group.externalMembers.append(_ext_addr)
if _ext_addr not in self.mcomm_group.externalMembers:
self.mcomm_group.externalMembers.append(_ext_addr)
if self.control_group in self.mcomm_group.memberGroups:
self.mcomm_group.memberGroups.remove(self.control_group)
self.mcomm_group.update_membership()
......
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