mirror of
https://github.com/GAM-team/GAM.git
synced 2026-06-28 18:01:36 +00:00
retry notFound when changing group settings after create to handle sporadic latency issues that cause failure
This commit is contained in:
@@ -8965,12 +8965,12 @@ def doCreateGroup():
|
||||
if gs and not GroupIsAbuseOrPostmaster(body['email']):
|
||||
if gs_get_before_update:
|
||||
current_settings = callGAPI(gs.groups(), 'get',
|
||||
retry_reasons=['serviceLimit'],
|
||||
retry_reasons=['serviceLimit', 'notFound'],
|
||||
groupUniqueId=body['email'], fields='*')
|
||||
if current_settings is not None:
|
||||
gs_body = dict(list(current_settings.items()) + list(gs_body.items()))
|
||||
if gs_body:
|
||||
callGAPI(gs.groups(), 'update', retry_reasons=['serviceLimit'], groupUniqueId=body['email'], body=gs_body)
|
||||
callGAPI(gs.groups(), 'update', retry_reasons=['serviceLimit', 'notFound'], groupUniqueId=body['email'], body=gs_body)
|
||||
|
||||
def doCreateAlias():
|
||||
cd = buildGAPIObject('directory')
|
||||
|
||||
Reference in New Issue
Block a user